1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
This commit is contained in:
Rafi594 2019-10-26 20:08:23 +02:00
parent c732edb486
commit bfcbcc8a7a
4 changed files with 6 additions and 4 deletions

View file

@ -20,7 +20,7 @@
upgrade=1
upgrade=1 from_commit=7a4ce3de66d44b45ea08e8feb07b925a821ec760
backup_restore=1
multi_instance=1
multi_instance=0
incorrect_path=1
port_already_use=1
change_url=1

View file

@ -21,7 +21,7 @@
"requirements": {
"yunohost": ">= 3.5"
},
"multi_instance": true,
"multi_instance": false,
"services": [
"nginx",
"mysql"

View file

@ -28,6 +28,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
# Needed for helper "ynh_add_nginx_config"
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
port=$(ynh_app_setting_get --app=$app --key=port)
# Add settings here as needed by your application
#db_name=$(ynh_app_setting_get --app=$app --key=db_name)

View file

@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get $app domain)
path_url=$(ynh_app_setting_get $app path)
is_public=$(ynh_app_setting_get $app is_public)
final_path=$(ynh_app_setting_get $app final_path)
config_path=$(ynh_app_setting_get $app config_path)
port=$(ynh_app_setting_get $app port)
#=================================================
@ -56,8 +57,8 @@ fi
# If config_path doesn't exist, create it
if [ -z "$config_path" ]; then
final_path=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=final_path --value=$config_path
config_path=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=config_path --value=$config_path
fi