mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: in logrotate, make sure to also chown $app the log dir
This commit is contained in:
parent
9cd7c86641
commit
1dfc47d1d7
1 changed files with 4 additions and 2 deletions
|
@ -24,9 +24,11 @@ ynh_config_add_logrotate() {
|
|||
|
||||
for stuff in $logfile
|
||||
do
|
||||
mkdir --parents $(dirname "$stuff")
|
||||
# Make sure the permissions of the parent dir are correct (otherwise the config file could be ignored and the corresponding logs never rotated)
|
||||
chmod 750 $(dirname "$stuff")
|
||||
local dir=$(dirname "$stuff")
|
||||
mkdir --parents $dir
|
||||
chmod 750 $dir
|
||||
chown $app:$app $dir
|
||||
done
|
||||
|
||||
local tempconf="$(mktemp)"
|
||||
|
|
Loading…
Add table
Reference in a new issue