1
0
Fork 0
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:
Maniack Crudelis 2017-09-08 13:10:22 +02:00
parent 49673a061f
commit 4c29aa94f9
3 changed files with 4 additions and 4 deletions

View file

@ -142,7 +142,7 @@ ynh_replace_string "__ARCHDIR__" "$arch_dir" "$final_path/script/lutim"
# Making log symbolic link to /var/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"
#=================================================

View file

@ -104,7 +104,7 @@ ynh_restore_file "/etc/cron.d/$app"
# Making log symbolic link to /var/log
mkdir -p /var/log/$app/
touch /var/log/$app/production.log
chown $app: -R /var/log/$app
chown $app -R /var/log/$app
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION

View file

@ -135,8 +135,8 @@ chown -R $app: $final_path
# SETUP LOGROTATE
#=================================================
ynh_use_logrotate
chown $app: -R /var/log/$app
ynh_use_logrotate --non-append
chown $app -R /var/log/$app
#=================================================
# SETUP SSOWAT