Logrotate fix

https://github.com/armbian/build/issues/1033
This commit is contained in:
Igor Pečovnik 2018-07-06 06:59:38 +02:00 committed by GitHub
parent a79d5932cf
commit 52c71aba80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ prepare_board() {
for ConfigFile in /etc/logrotate.d/* ; do sed -i -e "s/log\//log.hdd\//" "${ConfigFile}"; done
sed -i "s/log\//log.hdd\//" /etc/logrotate.conf
else
for ConfigFile in /etc/logrotate.d/* ; do sed -i -e "s/log.hdd\//log\//" "${ConfigFile}"; done
sed -i "s/log.hdd\//log\//" /etc/logrotate.conf
for ConfigFile in /etc/logrotate.d/* ; do sed -i -e "s/\/log.hdd\//\/log\//" "${ConfigFile}"; done
sed -i "s/\/log.hdd\//\/log\//" /etc/logrotate.conf
fi
# enable compression where not exists