From 1a1231d496b2d8c96ec54820d51ac4a81dc6ecc4 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Mon, 4 Jun 2018 14:36:46 +0000 Subject: [PATCH] fix paths, permissions --- bin/clean.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/clean.sh b/bin/clean.sh index ee3e1132..ce84c0a8 100755 --- a/bin/clean.sh +++ b/bin/clean.sh @@ -130,7 +130,7 @@ fuEMOBILITY () { # Let's create a function to clean up and prepare glastopf data fuGLASTOPF () { if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/glastopf/*; fi - mkdir -p /data/glastopf + mkdir -p /data/glastopf/db /data/glastopf/log chmod 760 /data/glastopf -R chown tpot:tpot /data/glastopf -R } @@ -169,7 +169,7 @@ fuMAILONEY () { # Let's create a function to clean up nginx logs fuNGINX () { - if [ "$myPERSISTENCE" != "on" ]; then rm /data/nginx/log/*; fi + if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/nginx/log/*; fi chmod 644 /data/nginx/conf -R chmod 644 /data/nginx/cert -R }