1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wetty_ynh.git synced 2024-09-03 18:16:29 +02:00

Change where the log directory is created.

This commit is contained in:
Salamandar 2021-05-19 09:05:40 +02:00
parent 9bf74d230c
commit aa47f27d91

View file

@ -102,6 +102,7 @@ yunohost service add $app --description="Wetty Web Terminal service" --log="/var
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
mkdir -p "/var/log/$app/"
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Server started"
#=================================================
@ -109,7 +110,6 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
#=================================================
ynh_script_progression --message="Restoring the logrotate configuration..."
mkdir -p "/var/log/$app/"
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================