mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +00:00
fix paths, permissions
This commit is contained in:
parent
650b4a9b51
commit
1a1231d496
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ fuEMOBILITY () {
|
||||||
# Let's create a function to clean up and prepare glastopf data
|
# Let's create a function to clean up and prepare glastopf data
|
||||||
fuGLASTOPF () {
|
fuGLASTOPF () {
|
||||||
if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/glastopf/*; fi
|
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
|
chmod 760 /data/glastopf -R
|
||||||
chown tpot:tpot /data/glastopf -R
|
chown tpot:tpot /data/glastopf -R
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@ fuMAILONEY () {
|
||||||
|
|
||||||
# Let's create a function to clean up nginx logs
|
# Let's create a function to clean up nginx logs
|
||||||
fuNGINX () {
|
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/conf -R
|
||||||
chmod 644 /data/nginx/cert -R
|
chmod 644 /data/nginx/cert -R
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue