Browse Source

Reset the blog theme

Bob Mottram 9 years ago
parent
commit
0b5cdc30bb
No account linked to committer's email
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/freedombone-image-mesh

+ 5
- 0
src/freedombone-image-mesh View File

767
 
767
 
768
     if [ -d /home/$MY_USERNAME/CreateBlog/content ]; then
768
     if [ -d /home/$MY_USERNAME/CreateBlog/content ]; then
769
         shred -zu /home/$MY_USERNAME/CreateBlog/content/*
769
         shred -zu /home/$MY_USERNAME/CreateBlog/content/*
770
+        if grep -q "THEME=" /home/$MY_USERNAME/CreateBlog/pelicanconf.py; then
771
+            sed -i "s|THEME=.*|THEME='themes/Just-Read'|g" /home/$MY_USERNAME/CreateBlog/pelicanconf.py
772
+        else
773
+            echo "THEME='themes/Just-Read'" >> /home/$MY_USERNAME/CreateBlog/pelicanconf.py
774
+        fi
770
     fi
775
     fi
771
 
776
 
772
     if [ -d /home/$MY_USERNAME/.ipfs ]; then
777
     if [ -d /home/$MY_USERNAME/.ipfs ]; then