mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
Fix logrotate
This commit is contained in:
parent
49673a061f
commit
4c29aa94f9
3 changed files with 4 additions and 4 deletions
|
@ -142,7 +142,7 @@ ynh_replace_string "__ARCHDIR__" "$arch_dir" "$final_path/script/lutim"
|
||||||
|
|
||||||
# Making log symbolic link to /var/log
|
# Making log symbolic link to /var/log
|
||||||
touch /var/log/$app/production.log
|
touch /var/log/$app/production.log
|
||||||
chown $app: -R /var/log/$app
|
chown $app -R /var/log/$app
|
||||||
ln -s /var/log/$app/production.log "$final_path/log/production.log"
|
ln -s /var/log/$app/production.log "$final_path/log/production.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -104,7 +104,7 @@ ynh_restore_file "/etc/cron.d/$app"
|
||||||
# Making log symbolic link to /var/log
|
# Making log symbolic link to /var/log
|
||||||
mkdir -p /var/log/$app/
|
mkdir -p /var/log/$app/
|
||||||
touch /var/log/$app/production.log
|
touch /var/log/$app/production.log
|
||||||
chown $app: -R /var/log/$app
|
chown $app -R /var/log/$app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE LOGROTATE CONFIGURATION
|
# RESTORE THE LOGROTATE CONFIGURATION
|
||||||
|
|
|
@ -135,8 +135,8 @@ chown -R $app: $final_path
|
||||||
# SETUP LOGROTATE
|
# SETUP LOGROTATE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_use_logrotate
|
ynh_use_logrotate --non-append
|
||||||
chown $app: -R /var/log/$app
|
chown $app -R /var/log/$app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Reference in a new issue