1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00

Solving App is broken #17 2

This commit is contained in:
ewilly 2017-01-07 14:26:26 +01:00
parent 86b4a7869e
commit 4584047561
2 changed files with 3 additions and 2 deletions

View file

@ -9,7 +9,7 @@ source /usr/share/yunohost/helpers
# retrieve arguments # retrieve arguments
app=bozon app=bozon
domain=$1 domain=$1
path=${2%/} path=$2
is_public=$3 is_public=$3
language=$4 language=$4
filesize=$5 filesize=$5
@ -109,7 +109,7 @@ echo "127.0.0.1 $domain # $app" | sudo tee -a /etc/hosts
# fill the superadmin creation form # fill the superadmin creation form
curl_path=$([ "$path" == "/" ] || echo "$path") curl_path=$([ "$path" == "/" ] || echo "$path")
curl https://"$domain""$curl_path"/ > /dev/null 2>&1 curl -k https://"$domain""$curl_path"/ > /dev/null 2>&1
sleep 1 && curl -kX POST \ sleep 1 && curl -kX POST \
--data-urlencode creation="1" \ --data-urlencode creation="1" \
--data-urlencode login="$admin" \ --data-urlencode login="$admin" \

View file

@ -9,6 +9,7 @@ source /usr/share/yunohost/helpers
#retrieve arguments #retrieve arguments
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get "$app" domain) domain=$(ynh_app_setting_get "$app" domain)
path=$(ynh_app_setting_get "$app" path)
# definie useful vars # definie useful vars
parent_path=/var/www parent_path=/var/www