1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/isso_ynh.git synced 2024-09-03 19:35:55 +02:00

fix backup/restore

This commit is contained in:
navanchauhan 2022-08-13 19:11:26 -04:00
parent 27a0e5e5b6
commit 06f899a082

View file

@ -62,6 +62,17 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# Create blank log file
#=================================================
mkdir -p "/var/log/$app"
chmod 750 "/var/log/$app"
chmod -R o-rwx "$final_path"
ynh_exec_as $app touch "/var/log/$app/$app.log"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================