From c1b705c3eb24dc0fc28d11eb7e4c3593faade19b Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 27 Mar 2019 01:46:15 +0100 Subject: [PATCH] Don't use symbolic link --- scripts/install | 1 - scripts/restore | 1 - scripts/upgrade | 8 -------- 3 files changed, 10 deletions(-) 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