diff --git a/scripts/install b/scripts/install index 7735ae3..2cac67b 100755 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,7 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_add_systemd_config +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="port domain" #================================================= # INTEGRATE SERVICE IN YUNOHOST @@ -141,6 +141,7 @@ python3 $final_path/epicyon.py --addaccount $email --password $password # Set permissions to app files chown -R $app: $final_path +chown -R $app: $public_path #================================================= # SETUP SSOWAT diff --git a/scripts/upgrade b/scripts/upgrade index e1d6cd4..c695515 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,7 +118,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="port domain" #================================================= @@ -129,6 +129,7 @@ ynh_add_systemd_config # Set permissions on app files chown -R $app: $final_path +chown -R $app: $public_path #================================================= # INTEGRATE SERVICE IN YUNOHOST