From 0b5cdc30bba6813cb647513bb54710ef200214c9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Sep 2016 13:33:11 +0100 Subject: [PATCH] Reset the blog theme --- src/freedombone-image-mesh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-image-mesh b/src/freedombone-image-mesh index fac36968..375c1f8a 100755 --- a/src/freedombone-image-mesh +++ b/src/freedombone-image-mesh @@ -767,6 +767,11 @@ function setup_ipfs { if [ -d /home/$MY_USERNAME/CreateBlog/content ]; then shred -zu /home/$MY_USERNAME/CreateBlog/content/* + if grep -q "THEME=" /home/$MY_USERNAME/CreateBlog/pelicanconf.py; then + sed -i "s|THEME=.*|THEME='themes/Just-Read'|g" /home/$MY_USERNAME/CreateBlog/pelicanconf.py + else + echo "THEME='themes/Just-Read'" >> /home/$MY_USERNAME/CreateBlog/pelicanconf.py + fi fi if [ -d /home/$MY_USERNAME/.ipfs ]; then