mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
regenconf/portal: fix attempt to chown before the user is created
This commit is contained in:
parent
093c707eb6
commit
8aee337d0f
1 changed files with 6 additions and 5 deletions
|
@ -29,11 +29,6 @@ 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
|
||||||
|
@ -72,6 +67,12 @@ do_init_regen() {
|
||||||
chown ynh-portal:root /etc/yunohost/.ssowat_cookie_secret
|
chown ynh-portal:root /etc/yunohost/.ssowat_cookie_secret
|
||||||
chmod 400 /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-api.service /etc/systemd/system/yunohost-api.service
|
||||||
cp yunohost-portal-api.service /etc/systemd/system/yunohost-portal-api.service
|
cp yunohost-portal-api.service /etc/systemd/system/yunohost-portal-api.service
|
||||||
cp yunohost-firewall.service /etc/systemd/system/yunohost-firewall.service
|
cp yunohost-firewall.service /etc/systemd/system/yunohost-firewall.service
|
||||||
|
|
Loading…
Add table
Reference in a new issue