1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncserver-rs_ynh.git synced 2024-09-03 20:26:32 +02:00

Only create dir if it does not exist.

This commit is contained in:
orhtej2 2023-10-23 21:55:13 +02:00
parent 26933e5569
commit a13fb86da6
3 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@ ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
mkdir /var/log/$app
mkdir -p /var/log/$app
touch /var/log/$app/$app.log
chown -R $app: /var/log/$app

View file

@ -44,7 +44,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
mkdir /var/log/$app
mkdir -p /var/log/$app
touch /var/log/$app/$app.log
chown -R $app: /var/log/$app

View file

@ -91,7 +91,7 @@ ynh_add_nginx_config
ynh_add_systemd_config
mkdir /var/log/$app
mkdir -p /var/log/$app
touch /var/log/$app/$app.log
chown -R $app: /var/log/$app