|
|
@@ -42,6 +42,14 @@ ynh_script_progression --message="Activating maintenance mode..." --time --weigh
|
|
|
|
|
|
ynh_maintenance_mode_ON
|
|
|
|
|
|
+#=================================================
|
|
|
+# CREATE DEDICATED USER
|
|
|
+#=================================================
|
|
|
+ynh_script_progression --message="Making sure dedicated system user exists..." --time --weight=1
|
|
|
+
|
|
|
+# Create a dedicated user (if not existing)
|
|
|
+ynh_system_user_create --username=$app
|
|
|
+
|
|
|
#=================================================
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
#=================================================
|
|
|
@@ -62,6 +70,9 @@ else
|
|
|
# Overwrite admin dashboard
|
|
|
YNH_CWD=$PWD ynh_setup_source --dest_dir="$final_path" --source_id=admin_dashboard_last
|
|
|
fi
|
|
|
+
|
|
|
+chown -R $app:www-data "$final_path"
|
|
|
+
|
|
|
)
|
|
|
|
|
|
#=================================================
|
|
|
@@ -72,14 +83,6 @@ ynh_script_progression --message="Resetting nginx web server configuration..." -
|
|
|
# Create a dedicated nginx config
|
|
|
yunohost app action run $app reset_default_nginx
|
|
|
|
|
|
-#=================================================
|
|
|
-# CREATE DEDICATED USER
|
|
|
-#=================================================
|
|
|
-ynh_script_progression --message="Making sure dedicated system user exists..." --time --weight=1
|
|
|
-
|
|
|
-# Create a dedicated user (if not existing)
|
|
|
-ynh_system_user_create --username=$app
|
|
|
-
|
|
|
#=================================================
|
|
|
# PHP-FPM CONFIGURATION
|
|
|
#=================================================
|