瀏覽代碼

Reset the blog theme

Bob Mottram 8 年之前
父節點
當前提交
0b5cdc30bb
沒有帳戶連結到提交者的電子郵件
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/freedombone-image-mesh

+ 5
- 0
src/freedombone-image-mesh 查看文件

@@ -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