Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
604083e1
Unverified
Commit
604083e1
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Separate clones of static blog themes
parent
a98df568
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-blogstatic
+41
-35
41 additions, 35 deletions
src/freedombone-app-blogstatic
with
41 additions
and
35 deletions
src/freedombone-app-blogstatic
+
41
−
35
View file @
604083e1
...
...
@@ -168,39 +168,7 @@ function create_pelican_publish_conf {
echo
'DELETE_OUTPUT_DIRECTORY = True'
>>
$STATIC_BLOG_FILE
}
function
mesh_install_blogstatic
{
if
[[
$VARIANT
!=
"meshclient"
&&
$VARIANT
!=
"meshusb"
&&
$VARIANT
!=
"usb"
]]
;
then
return
fi
chroot
"
$rootdir
"
apt-get
-y
install
python-pip
chroot
"
$rootdir
"
pip
install
ipython
chroot
"
$rootdir
"
pip
install
Markdown
chroot
"
$rootdir
"
pip
install
typogrify
chroot
"
$rootdir
"
pip
install
pelican
STATIC_BLOG_INSTALL_DIR
=
/home/
$MY_USERNAME
/CreateBlog
STATIC_BLOG_PATH
=
/home/
$MY_USERNAME
/Public/Blog
if
[
!
-d
$rootdir$STATIC_BLOG_INSTALL_DIR
]
;
then
mkdir
-p
$rootdir$STATIC_BLOG_INSTALL_DIR
fi
if
[
!
-d
$rootdir$STATIC_BLOG_PATH
]
;
then
mkdir
-p
$rootdir$STATIC_BLOG_PATH
fi
if
[
!
-d
$rootdir$STATIC_BLOG_INSTALL_DIR
/content/images
]
;
then
mkdir
-p
$rootdir$STATIC_BLOG_INSTALL_DIR
/content/images
fi
create_pelican_conf
$rootdir$STATIC_BLOG_INSTALL_DIR
/pelicanconf.py
create_pelican_makefile
$rootdir$STATIC_BLOG_INSTALL_DIR
/Makefile
create_pelican_publish_conf
$rootdir$STATIC_BLOG_INSTALL_DIR
/publishconf.py
mkdir
-p
$rootdir$STATIC_BLOG_INSTALL_DIR
/themes
cd
$rootdir$STATIC_BLOG_INSTALL_DIR
/themes
function
blogstatic_themes
{
# Clone themes separately because the themes repo sometimes has bad refs
git clone https://github.com/KenMercusLai/BT3-Flat
git clone https://github.com/abr4xas/Casper2Pelican
...
...
@@ -273,6 +241,41 @@ function mesh_install_blogstatic {
git clone https://github.com/samael500/w3-personal-blog
git clone https://github.com/jarv/water-iris
git clone https://github.com/kplaube/yapeme
}
function
mesh_install_blogstatic
{
if
[[
$VARIANT
!=
"meshclient"
&&
$VARIANT
!=
"meshusb"
&&
$VARIANT
!=
"usb"
]]
;
then
return
fi
chroot
"
$rootdir
"
apt-get
-y
install
python-pip
chroot
"
$rootdir
"
pip
install
ipython
chroot
"
$rootdir
"
pip
install
Markdown
chroot
"
$rootdir
"
pip
install
typogrify
chroot
"
$rootdir
"
pip
install
pelican
STATIC_BLOG_INSTALL_DIR
=
/home/
$MY_USERNAME
/CreateBlog
STATIC_BLOG_PATH
=
/home/
$MY_USERNAME
/Public/Blog
if
[
!
-d
$rootdir$STATIC_BLOG_INSTALL_DIR
]
;
then
mkdir
-p
$rootdir$STATIC_BLOG_INSTALL_DIR
fi
if
[
!
-d
$rootdir$STATIC_BLOG_PATH
]
;
then
mkdir
-p
$rootdir$STATIC_BLOG_PATH
fi
if
[
!
-d
$rootdir$STATIC_BLOG_INSTALL_DIR
/content/images
]
;
then
mkdir
-p
$rootdir$STATIC_BLOG_INSTALL_DIR
/content/images
fi
create_pelican_conf
$rootdir$STATIC_BLOG_INSTALL_DIR
/pelicanconf.py
create_pelican_makefile
$rootdir$STATIC_BLOG_INSTALL_DIR
/Makefile
create_pelican_publish_conf
$rootdir$STATIC_BLOG_INSTALL_DIR
/publishconf.py
mkdir
-p
$rootdir$STATIC_BLOG_INSTALL_DIR
/themes
cd
$rootdir$STATIC_BLOG_INSTALL_DIR
/themes
blogstatic_themes
#git clone --recursive $PELICAN_PLUGINS_REPO $rootdir$STATIC_BLOG_INSTALL_DIR/plugins
...
...
@@ -315,8 +318,11 @@ function install_blogstatic {
create_pelican_makefile
$STATIC_BLOG_INSTALL_DIR
/Makefile
create_pelican_publish_conf
$STATIC_BLOG_INSTALL_DIR
/publishconf.py
git clone
--recursive
$PELICAN_THEMES_REPO
$STATIC_BLOG_INSTALL_DIR
/themes
git clone
--recursive
$PELICAN_PLUGINS_REPO
$STATIC_BLOG_INSTALL_DIR
/plugins
mkdir
-p
$PELICAN_THEMES_REPO
$STATIC_BLOG_INSTALL_DIR
/themes
cd
$PELICAN_THEMES_REPO
$STATIC_BLOG_INSTALL_DIR
/themes
blogstatic_themes
#git clone --recursive $PELICAN_PLUGINS_REPO $STATIC_BLOG_INSTALL_DIR/plugins
chown
-R
$MY_USERNAME
:
$MY_USERNAME
$STATIC_BLOG_INSTALL_DIR
chown
-R
www-data:www-data
$STATIC_BLOG_PATH
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment