1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00

log files

This commit is contained in:
Kayou 2019-03-03 20:26:09 +01:00
parent 18cf8d8d70
commit 8a6cff10be
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126
3 changed files with 5 additions and 5 deletions

View file

@ -189,8 +189,7 @@ ynh_use_logrotate
# ADVERTISE SERVICE IN ADMIN PANEL # ADVERTISE SERVICE IN ADMIN PANEL
#================================================= #=================================================
yunohost service add $app --log "/var/log/$app.log" --log "$final_path/log/production.log" yunohost service add $app --log "$final_path/log/production.log"
ln -sf "$final_path/log/production.log" "/var/log/$app/production.log"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
@ -218,6 +217,7 @@ 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,13 +103,13 @@ 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
#================================================= #=================================================
yunohost service add $app --log "/var/log/$app.log" --log "/var/www/$app/log/production.log" yunohost service add $app --log "$final_path/log/production.log"
ln -sf "$final_path/log/production.log" "/var/log/$app/production.log"
#================================================= #=================================================
# RESTORE THE LOGROTATE CONFIGURATION # RESTORE THE LOGROTATE CONFIGURATION

View file

@ -171,7 +171,7 @@ ynh_use_logrotate --non-append
# ADVERTISE SERVICE IN ADMIN PANEL # ADVERTISE SERVICE IN ADMIN PANEL
#================================================= #=================================================
yunohost service add $app --log "/var/log/$app.log" yunohost service add $app --log "$final_path/log/production.log"
#================================================= #=================================================
# RESTART LUFI # RESTART LUFI