mirror of
https://github.com/YunoHost-Apps/fider_ynh.git
synced 2024-09-03 18:36:11 +02:00
Fix: re-create the log directory in restore script
This commit is contained in:
parent
9304089511
commit
fc2cf85447
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,9 @@ systemctl enable $app.service --quiet
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1
|
ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1
|
||||||
|
|
||||||
|
mkdir -p "/var/log/$app/"
|
||||||
|
touch "/var/log/$app/$app.log"
|
||||||
|
chown -R $app:$app "/var/log/$app/"
|
||||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue