mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge 9c8c7a0d51
into 8a0a33a0de
This commit is contained in:
commit
1abecdd79a
1 changed files with 6 additions and 2 deletions
|
@ -88,8 +88,12 @@ $logfile {
|
|||
$su_directive
|
||||
}
|
||||
EOF
|
||||
mkdir --parents $(dirname "$logfile") # Create the log directory, if not exist
|
||||
cat ${app}-logrotate | $customtee /etc/logrotate.d/$app >/dev/null # Append this config to the existing config file, or replace the whole config file (depending on $customtee)
|
||||
# Create the log directory, if not exist
|
||||
mkdir --parents $(dirname "$logfile")
|
||||
chmod 644 $(dirname "$logfile")
|
||||
# Append this config to the existing config file, or replace the whole config file (depending on $customtee)
|
||||
cat ${app}-logrotate | $customtee /etc/logrotate.d/$app >/dev/null
|
||||
chmod 644 /etc/logrotate.d/$app
|
||||
}
|
||||
|
||||
# Remove the app's logrotate config.
|
||||
|
|
Loading…
Add table
Reference in a new issue