mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
logrotate plus tôt
This commit is contained in:
parent
c82d0910cb
commit
56be152f63
2 changed files with 8 additions and 8 deletions
|
@ -113,6 +113,10 @@ sudo cp ../conf/cron_lutim /etc/cron.d/$app
|
|||
sudo sed -i "s@__FINALPATH__@$final_path/@g" /etc/cron.d/$app
|
||||
sudo chmod +x $final_path/script/lutim
|
||||
|
||||
# Configuration de logrotate
|
||||
sed -i "s@__FINALPATH__@$final_path@g" ../conf/logrotate
|
||||
sudo cp ../conf/logrotate /etc/logrotate.d/$app
|
||||
|
||||
# Installation de lutim via carton
|
||||
sudo mkdir -p /var/log/$app/
|
||||
cd $final_path
|
||||
|
@ -154,10 +158,6 @@ sudo chown -R www-data: "$final_path"
|
|||
# Add lutim as a service
|
||||
sudo yunohost service add lutim -l $final_path/log/production.log
|
||||
|
||||
# Configuration de logrotate
|
||||
sed -i "s@__FINALPATH__@$final_path@g" ../conf/logrotate
|
||||
sudo cp ../conf/logrotate /etc/logrotate.d/$app
|
||||
|
||||
|
||||
# Recharge la configuration Nginx
|
||||
sudo service nginx reload
|
||||
|
|
|
@ -77,6 +77,10 @@ fi
|
|||
sudo cp ../conf/cron_lutim /etc/cron.d/$app
|
||||
sudo sed -i "s@__FINALPATH__@$final_path/@g" /etc/cron.d/$app
|
||||
|
||||
# Configuration de logrotate
|
||||
sed -i "s@__FINALPATH__@$final_path@g" ../conf/logrotate
|
||||
sudo cp ../conf/logrotate /etc/logrotate.d/$app
|
||||
|
||||
# Mise à jour de lutim via carton
|
||||
cd $final_path
|
||||
sudo carton install 2>&1 | sudo tee -a "/var/log/$app/setup_carton.log"
|
||||
|
@ -93,10 +97,6 @@ sudo chown -R www-data: $final_path
|
|||
# Restart lutim
|
||||
sudo service lutim restart
|
||||
|
||||
# Configuration de logrotate
|
||||
sed -i "s@__FINALPATH__@$final_path@g" ../conf/logrotate
|
||||
sudo cp ../conf/logrotate /etc/logrotate.d/$app
|
||||
|
||||
|
||||
# Recharge la configuration Nginx
|
||||
sudo service nginx reload
|
||||
|
|
Loading…
Add table
Reference in a new issue