mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
add logrotate conf
This commit is contained in:
parent
503d4bd3f4
commit
a07f307fa1
2 changed files with 12 additions and 0 deletions
9
conf/logrotate
Normal file
9
conf/logrotate
Normal file
|
@ -0,0 +1,9 @@
|
|||
YNH_LOGFILE
|
||||
{
|
||||
rotate 5
|
||||
weekly
|
||||
nomissingok
|
||||
notifempty
|
||||
compress
|
||||
copytruncate
|
||||
}
|
|
@ -64,6 +64,9 @@ sudo update-rc.d ynh-ghostblog defaults
|
|||
sudo service ynh-ghostblog start
|
||||
sudo yunohost app service ynh-ghostblog -l $logfile
|
||||
|
||||
sed -i "s@YNH_LOGFILE@$logfile@g" ../conf/logrotate
|
||||
sudo cp ../conf/logrotate /etc/logrotate.d/ynh-ghostblog
|
||||
|
||||
echo "Reloading Nginx..."
|
||||
|
||||
sudo service nginx reload
|
||||
|
|
Loading…
Add table
Reference in a new issue