diff --git a/scripts/install b/scripts/install index 0a665fb..d55e7a7 100644 --- a/scripts/install +++ b/scripts/install @@ -220,7 +220,6 @@ chown -R $app:$app "$final_path" systemctl enable $app.service ynh_systemd_action -n $app -a start -l "Creating process id file" -p "$final_path/log/production.log" -ln -sf "$final_path/log/production.log" "/var/log/$app/production.log" #================================================= # RELOAD NGINX diff --git a/scripts/restore b/scripts/restore index 16d41ae..e16363a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -103,7 +103,6 @@ ynh_print_info "Restoring the systemd configuration..." ynh_restore_file "/etc/systemd/system/$app.service" systemctl enable $app.service ynh_systemd_action -n $app -a start -l "Creating process id file" -p "$final_path/log/production.log" -ln -sf "$final_path/log/production.log" "/var/log/$app/production.log" #================================================= # ADVERTISE SERVICE IN ADMIN PANEL diff --git a/scripts/upgrade b/scripts/upgrade index ad1227c..748671c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -194,15 +194,7 @@ yunohost service add $app --log "$final_path/log/production.log" # RESTART LUFI #================================================= -# if /var/log/$app/production.log is a symbolic link, then move it to $final_path/log/production.log -if [ ! -L "/var/log/$app/production.log" ] -then - mv "/var/log/$app/production.log" "$final_path/log/production.log" - chown -R $app: "$final_path/log/production.log" -fi - ynh_systemd_action -n $app -a reload -l "Creating process id file" -p "$final_path/log/production.log" -ln -sf "$final_path/log/production.log" "/var/log/$app/production.log" #================================================= # SETUP SSOWAT