Merge branch 'master' into dist/envole/7/master
This commit is contained in:
commit
7bedb306da
|
@ -1,11 +1,13 @@
|
||||||
/var/www/html/nineschool/var/log/*.log {
|
/var/www/html/nineschool/var/log/*.log {
|
||||||
maxsize 50M
|
su root www-data
|
||||||
daily
|
daily
|
||||||
missingok
|
rotate 7
|
||||||
rotate 5
|
size 900
|
||||||
|
maxage 7
|
||||||
compress
|
compress
|
||||||
notifempty
|
dateext
|
||||||
nocreate
|
dateformat -%Y%m%d
|
||||||
su www-data
|
missingok
|
||||||
|
create 644 www-data www-data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,9 @@ DIR=$(pwd)
|
||||||
# Déclaration d'un proxy
|
# Déclaration d'un proxy
|
||||||
. $DIR/scripts/proxy.sh
|
. $DIR/scripts/proxy.sh
|
||||||
|
|
||||||
|
# Suppression des logs trop ancien
|
||||||
|
find $DIR/var/log -mindepth 1 -mtime +7 -delete
|
||||||
|
|
||||||
# Mise en place du fichier d'environnement model
|
# Mise en place du fichier d'environnement model
|
||||||
yes 2>/dev/null | cp $DIR/scripts/.env.model $DIR/.env
|
yes 2>/dev/null | cp $DIR/scripts/.env.model $DIR/.env
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue