mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
conf_regen:yunohost: setup /etc/yunohost/portal
This commit is contained in:
parent
c577125363
commit
827fbe337d
1 changed files with 11 additions and 1 deletions
|
@ -29,6 +29,11 @@ do_init_regen() {
|
||||||
chown -R root:ssl-cert /etc/yunohost/certs
|
chown -R root:ssl-cert /etc/yunohost/certs
|
||||||
chmod 750 /etc/yunohost/certs
|
chmod 750 /etc/yunohost/certs
|
||||||
|
|
||||||
|
# Portal folder
|
||||||
|
mkdir -p /etc/yunohost/portal
|
||||||
|
chmod 500 /etc/yunohost/portal
|
||||||
|
chown ynh-portal:ynh-portal /etc/yunohost/portal
|
||||||
|
|
||||||
# App folders
|
# App folders
|
||||||
mkdir -p /etc/yunohost/apps
|
mkdir -p /etc/yunohost/apps
|
||||||
chmod 700 /etc/yunohost/apps
|
chmod 700 /etc/yunohost/apps
|
||||||
|
@ -243,6 +248,11 @@ do_post_regen() {
|
||||||
[ ! -e "/home/$USER" ] || setfacl -m g:all_users:--- /home/$USER
|
[ ! -e "/home/$USER" ] || setfacl -m g:all_users:--- /home/$USER
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Portal settings
|
||||||
|
mkdir -p /etc/yunohost/portal
|
||||||
|
[[ ! -e /etc/yunohost/portal ]] || (chown ynh-portal:ynh-portal /etc/yunohost/portal && chmod 500 /etc/yunohost/portal)
|
||||||
|
chmod g+s /etc/yunohost/portal
|
||||||
|
|
||||||
# Domain settings
|
# Domain settings
|
||||||
mkdir -p /etc/yunohost/domains
|
mkdir -p /etc/yunohost/domains
|
||||||
|
|
||||||
|
@ -267,7 +277,7 @@ do_post_regen() {
|
||||||
systemctl restart ntp
|
systemctl restart ntp
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ ! "$regen_conf_files" =~ "nftables.service.d/ynh-override.conf" ]] || systemctl daemon-reload
|
[[ ! "$regen_conf_files" =~ "nftables.service.d/ynh-override.conf" ]] || systemctl daemon-reload
|
||||||
[[ ! "$regen_conf_files" =~ "login.conf.d/ynh-override.conf" ]] || {
|
[[ ! "$regen_conf_files" =~ "login.conf.d/ynh-override.conf" ]] || {
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
Loading…
Add table
Reference in a new issue