regenconf/portal: fix attempt to chown before the user is created

This commit is contained in:
Alexandre Aubin 2023-10-30 17:04:17 +01:00
parent 093c707eb6
commit 8aee337d0f

View file

@ -29,11 +29,6 @@ do_init_regen() {
chown -R root:ssl-cert /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
mkdir -p /etc/yunohost/apps
chmod 700 /etc/yunohost/apps
@ -72,6 +67,12 @@ do_init_regen() {
chown ynh-portal:root /etc/yunohost/.ssowat_cookie_secret
chmod 400 /etc/yunohost/.ssowat_cookie_secret
# Portal folder
mkdir -p /etc/yunohost/portal
chmod 500 /etc/yunohost/portal
chown ynh-portal:ynh-portal /etc/yunohost/portal
# YunoHost services
cp yunohost-api.service /etc/systemd/system/yunohost-api.service
cp yunohost-portal-api.service /etc/systemd/system/yunohost-portal-api.service
cp yunohost-firewall.service /etc/systemd/system/yunohost-firewall.service