Skip to content
Snippets Groups Projects
Unverified Commit 604083e1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Separate clones of static blog themes

parent a98df568
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment