mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Don't use symbolic link
This commit is contained in:
parent
3bcb0958cb
commit
c1b705c3eb
3 changed files with 0 additions and 10 deletions
|
@ -220,7 +220,6 @@ chown -R $app:$app "$final_path"
|
||||||
|
|
||||||
systemctl enable $app.service
|
systemctl enable $app.service
|
||||||
ynh_systemd_action -n $app -a start -l "Creating process id file" -p "$final_path/log/production.log"
|
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
|
# RELOAD NGINX
|
||||||
|
|
|
@ -103,7 +103,6 @@ ynh_print_info "Restoring the systemd configuration..."
|
||||||
ynh_restore_file "/etc/systemd/system/$app.service"
|
ynh_restore_file "/etc/systemd/system/$app.service"
|
||||||
systemctl enable $app.service
|
systemctl enable $app.service
|
||||||
ynh_systemd_action -n $app -a start -l "Creating process id file" -p "$final_path/log/production.log"
|
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
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
|
|
@ -194,15 +194,7 @@ yunohost service add $app --log "$final_path/log/production.log"
|
||||||
# RESTART LUFI
|
# 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"
|
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
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Add table
Reference in a new issue