Reset the blog theme

This commit is contained in:
Bob Mottram 2016-09-09 13:33:11 +01:00
parent 7213289826
commit 0b5cdc30bb
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 5 additions and 0 deletions

View File

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