mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ynh_add_config: crons should be owned by root, otherwise they probably don't run?
This commit is contained in:
parent
bd8fe6d4db
commit
0973301b0f
1 changed files with 7 additions and 0 deletions
|
@ -967,4 +967,11 @@ _ynh_apply_default_permissions() {
|
|||
chown $app:$app $target
|
||||
fi
|
||||
fi
|
||||
|
||||
# Crons should be owned by root otherwise they probably don't run
|
||||
if echo "$target" | grep -q '^/etc/cron'
|
||||
then
|
||||
chmod 400 $target
|
||||
chown root:root $target
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue