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:
ericgaspar 2021-04-10 12:35:07 +02:00
parent 59fc1c80db
commit e0c04d6ce6
No known key found for this signature in database
GPG key ID: 574F281483054D44
8 changed files with 8 additions and 42 deletions

View file

@ -22,8 +22,8 @@ Clone of 2048 game. You need to reach 243.
#### Supported architectures
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/243%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/243/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/243%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/243/)
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/243.svg)](https://ci-apps.yunohost.org/ci/apps/243/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/243.svg)](https://ci-apps-arm.yunohost.org/ci/apps/243/)
## Links

View file

@ -22,8 +22,9 @@ Clone du jeu 2048. Il vous faut atteindre 243.
#### Architectures supportées
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/243%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/243/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/243%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/243/)
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/243.svg)](https://ci-apps.yunohost.org/ci/apps/243/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/243.svg)](https://ci-apps-arm.yunohost.org/ci/apps/243/)
## Liens

View file

@ -14,6 +14,5 @@
upgrade=1
backup_restore=1
multi_instance=1
port_already_use=0
change_url=1

View file

@ -8,8 +8,6 @@
source /usr/share/yunohost/helpers
ynh_abort_if_errors
#=================================================
# RETRIEVE ARGUMENTS
#=================================================

View file

@ -45,14 +45,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=2
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Configuring system user..." --weight=2
# Create a system user
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# STANDARD MODIFICATIONS
#=================================================
@ -80,7 +72,7 @@ ynh_add_nginx_config
#=================================================
# Set permissions to app files
chown -R $app: $final_path
chown -R root: $final_path
#=================================================
# SETUP SSOWAT

View file

@ -36,14 +36,6 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================
# REMOVE DEDICATED USER
#=================================================
ynh_script_progression --message="Removing the dedicated system user..." --weight=1
# Delete a system user
ynh_system_user_delete --username=$app
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -43,14 +43,6 @@ test ! -d $final_path \
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
ynh_script_progression --message="Recreating the dedicated system user..." --weight=1
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================
@ -63,7 +55,7 @@ ynh_restore_file --origin_path="$final_path"
#=================================================
# Restore permissions on app files
chown -R $app: $final_path
chown -R root: $final_path
#=================================================
# GENERIC FINALIZATION

View file

@ -57,14 +57,6 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Making sure dedicated system user exists..." --weight=1
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
@ -90,7 +82,7 @@ ynh_add_nginx_config
#=================================================
# Set permissions on app files
chown -R $app: $final_path
chown -R root: $final_path
#=================================================
# RELOAD NGINX