1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00
This commit is contained in:
polytan02 2016-12-22 12:22:16 +00:00
parent 56f0a724a2
commit dfa5cb52b3
4 changed files with 2 additions and 4 deletions

View file

@ -36,10 +36,12 @@ final_path=/var/www/$app
# Define variables and Save app settings
ynh_app_setting_set "$app" domain "$domain"
ynh_app_setting_set "$app" path "$path"
ynh_app_setting_set "$app" is_public "$is_public"
ynh_app_setting_set "$app" final_path "$final_path"
ynh_app_setting_set "$app" runninguser "$runninguser"
ynh_app_setting_set "$app" calibrepath "$calibrepath"
ynh_app_setting_set "$app" basicauthcreate "$basicauthcreate"
finalnginxconf="/etc/nginx/conf.d/${domain}.d/${app}.conf"
ynh_app_setting_set "$app" finalnginxconf "$finalnginxconf"
@ -63,7 +65,6 @@ sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php
# Add basic auth if requested
if [ "$basicauthcreate" = "Yes" ];
then
ynh_app_setting_set "$app" basicauthcreate "$basicauthcreate"
ynh_app_setting_set "$app" basicauthuser "$basicauthuser"
ynh_app_setting_set "$app" basicauthpass "$basicauthpass"

View file

@ -19,7 +19,6 @@ CHECK_VAR "$app" "app name not set"
path=$(ynh_app_setting_get $app path)
domain=$(ynh_app_setting_get $app domain)
final_path=$(ynh_app_setting_get $app final_path)
sitename=$(ynh_app_setting_get $app sitename)
finalnginxconf=$(ynh_app_setting_get $app finalnginxconf)
finalphpconf=$(ynh_app_setting_get $app finalphpconf)

View file

@ -15,7 +15,6 @@ source /usr/share/yunohost/helpers
# Retrieve old app settings
final_path=$(ynh_app_setting_get $app final_path)
path=$(ynh_app_setting_get $app path)
sitename=$(ynh_app_setting_get $app sitename)
domain=$(ynh_app_setting_get $app domain)
is_public=$(ynh_app_setting_get $app is_public)
finalnginxconf=$(ynh_app_setting_get $app finalnginxconf)

View file

@ -19,7 +19,6 @@ CHECK_VAR "$app" "app name not set"
path=$(ynh_app_setting_get $app path)
domain=$(ynh_app_setting_get $app domain)
final_path=$(ynh_app_setting_get $app final_path)
sitename=$(ynh_app_setting_get $app sitename)
finalnginxconf=$(ynh_app_setting_get $app finalnginxconf)
finalphpconf=$(ynh_app_setting_get $app finalphpconf)
runninguser=$(ynh_app_setting_get $app runninguser)