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:
parent
18cf8d8d70
commit
8a6cff10be
3 changed files with 5 additions and 5 deletions
|
@ -189,8 +189,7 @@ ynh_use_logrotate
|
|||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
yunohost service add $app --log "/var/log/$app.log" --log "$final_path/log/production.log"
|
||||
ln -sf "$final_path/log/production.log" "/var/log/$app/production.log"
|
||||
yunohost service add $app --log "$final_path/log/production.log"
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
@ -218,6 +217,7 @@ 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
|
||||
|
|
|
@ -103,13 +103,13 @@ 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
|
||||
#=================================================
|
||||
|
||||
yunohost service add $app --log "/var/log/$app.log" --log "/var/www/$app/log/production.log"
|
||||
ln -sf "$final_path/log/production.log" "/var/log/$app/production.log"
|
||||
yunohost service add $app --log "$final_path/log/production.log"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE LOGROTATE CONFIGURATION
|
||||
|
|
|
@ -171,7 +171,7 @@ ynh_use_logrotate --non-append
|
|||
# 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
|
||||
|
|
Loading…
Reference in a new issue