mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 19:58:52 +00:00
11 lines
353 B
Bash
11 lines
353 B
Bash
![]() |
#!/bin/ash
|
||
|
if [ "$(ls /var/lib/nginx/html/database)" = "" ] && [ "$HEIMDALL_PERSIST" = "YES" ];
|
||
|
then
|
||
|
tar xvfz /var/lib/nginx/first.tgz -C /
|
||
|
fi
|
||
|
if [ "$HEIMDALL_PERSIST" = "YES" ];
|
||
|
then
|
||
|
chmod 770 -R /var/lib/nginx/html/database /var/lib/nginx/html/storage
|
||
|
chown root:www-data -R /var/lib/nginx/html/database /var/lib/nginx/html/storage
|
||
|
fi
|