1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/243-game_ynh.git synced 2024-09-03 18:06:00 +02:00
This commit is contained in:
yalh76 2022-07-30 13:59:07 +02:00
parent b0841315c2
commit ff035cf60d
4 changed files with 5 additions and 6 deletions

View file

@ -53,7 +53,7 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_script_progression --message="Configuring system user..."
# Create a system user
ynh_system_user_create --username=$app --home_dir="$final_path"
ynh_system_user_create --username=ynh_$app --home_dir="$final_path"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -66,7 +66,7 @@ ynh_setup_source --dest_dir="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chown -R ynh_$app:www-data "$final_path"
#=================================================
# NGINX CONFIGURATION

View file

@ -45,7 +45,7 @@ ynh_remove_nginx_config
ynh_script_progression --message="Removing the dedicated system user..."
# Delete a system user
ynh_system_user_delete --username=$app
ynh_system_user_delete --username=ynh_$app
#=================================================
# END OF SCRIPT

View file

@ -55,8 +55,7 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chown -R ynh_$app:www-data "$final_path"
#=================================================
# RESTORE THE NGINX CONFIGURATION

View file

@ -74,7 +74,7 @@ fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chown -R ynh_$app:www-data "$final_path"
#=================================================
# NGINX CONFIGURATION