1
0
Fork 0
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:
Kayou 2019-03-27 01:46:15 +01:00
parent 3bcb0958cb
commit c1b705c3eb
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126
3 changed files with 0 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -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