mirror of
https://github.com/YunoHost-Apps/superset_ynh.git
synced 2024-09-03 20:26:31 +02:00
Fix restore: make sure log directory exists
This commit is contained in:
parent
bdfc8fede0
commit
0d5d0d47ea
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable $app.service --quiet
|
systemctl enable $app.service --quiet
|
||||||
|
|
||||||
|
mkdir -p "/var/log/$app"
|
||||||
yunohost service add $app --log="/var/log/$app/$app.log"
|
yunohost service add $app --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
Loading…
Add table
Reference in a new issue