mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Enforce permissions for /home/yunohost.backup and .conf
This commit is contained in:
parent
234ae15d77
commit
41b5a12393
1 changed files with 16 additions and 0 deletions
|
@ -94,6 +94,22 @@ do_post_regen() {
|
||||||
# Enfore permissions #
|
# Enfore permissions #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
|
if [ -d /home/yunohost.backup ]
|
||||||
|
then
|
||||||
|
chmod 750 /home/yunohost.backup
|
||||||
|
chown admin:root /home/yunohost.backup
|
||||||
|
fi
|
||||||
|
if [ -d /home/yunohost.backup/archives ]
|
||||||
|
then
|
||||||
|
chmod 750 /home/yunohost.backup/archives
|
||||||
|
chown admin:root /home/yunohost.backup/archives
|
||||||
|
fi
|
||||||
|
if [ -d /home/yunohost.conf ]
|
||||||
|
then
|
||||||
|
chmod 750 /home/yunohost.conf
|
||||||
|
chown root:root /home/yunohost.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# Certs
|
# Certs
|
||||||
# We do this with find because there could be a lot of them...
|
# We do this with find because there could be a lot of them...
|
||||||
chown -R root:ssl-cert /etc/yunohost/certs
|
chown -R root:ssl-cert /etc/yunohost/certs
|
||||||
|
|
Loading…
Add table
Reference in a new issue