1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/20euros_ynh.git synced 2024-09-03 18:05:53 +02:00

From source

This commit is contained in:
ericgaspar 2020-11-18 18:22:31 +01:00
parent 3d7c100468
commit 395f3b2b3a
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 23 additions and 8 deletions

9
conf/app.src Normal file
View file

@ -0,0 +1,9 @@
SOURCE_URL=https://github.com/jatekos101/20euros/archive/v0.1.zip
SOURCE_SUM=79e743f874eef952e8e0ca5f7a48d04872d7671a9c0581ce188fc42ee11bdf72
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=

View file

@ -3,18 +3,18 @@
"id": "20euros", "id": "20euros",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "2048 - 20euros", "en": "A 2048 variant with Euro coins and notes.",
"fr": "2048 - 20euros" "fr": "Une variante 2048 avec pièces et billets en euros."
}, },
"version": "1.0~ynh2", "version": "1.0~ynh2",
"url": "https://github.com/jatekos101/20euros", "url": "https://github.com/jatekos101/20euros",
"license": "MIT", "license": "MIT",
"maintainer": { "maintainer": {
"name": "eric_G", "name": "eric_G",
"email": "ericgaspar@free.fr" "email": ""
}, },
"requirements": { "requirements": {
"yunohost": ">= 3.7.0" "yunohost": ">= 4.0.0"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [

View file

@ -17,13 +17,18 @@ ynh_abort_if_errors
#================================================= #=================================================
# LOAD SETTINGS # LOAD SETTINGS
#================================================= #=================================================
ynh_print_info --message="Backing up 20euros..." ynh_print_info --message="Loading installation settings..."
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
final_path=$(ynh_app_setting_get --app=$app --key=final_path) final_path=$(ynh_app_setting_get --app=$app --key=final_path)
domain=$(ynh_app_setting_get --app=$app --key=domain) domain=$(ynh_app_setting_get --app=$app --key=domain)
#=================================================
# DECLARE DATA AND CONF FILES TO BACKUP
#=================================================
ynh_print_info --message="Declaring files to be backed up..."
#================================================= #=================================================
# BACKUP THE APP MAIN DIR # BACKUP THE APP MAIN DIR
#================================================= #=================================================

View file

@ -54,9 +54,10 @@ ynh_app_setting_set --app=$app --key=is_public --value=$is_public
ynh_script_progression --message="Setting up source files..." --weight=1 ynh_script_progression --message="Setting up source files..." --weight=1
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
mkdir -p $final_path ynh_setup_source --dest_dir="$final_path"
cp -a ../sources/* $final_path #mkdir -p $final_path
#cp -a ../sources/* $final_path
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION