Przeglądaj źródła

Reset the blog theme

Bob Mottram 8 lat temu
rodzic
commit
0b5cdc30bb
Brak konta powiązanego z e-mailem autora
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5
    0
      src/freedombone-image-mesh

+ 5
- 0
src/freedombone-image-mesh Wyświetl plik

@@ -767,6 +767,11 @@ function setup_ipfs {
767 767
 
768 768
     if [ -d /home/$MY_USERNAME/CreateBlog/content ]; then
769 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 775
     fi
771 776
 
772 777
     if [ -d /home/$MY_USERNAME/.ipfs ]; then