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:
parent
86b4a7869e
commit
4584047561
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ source /usr/share/yunohost/helpers
|
|||
# retrieve arguments
|
||||
app=bozon
|
||||
domain=$1
|
||||
path=${2%/}
|
||||
path=$2
|
||||
is_public=$3
|
||||
language=$4
|
||||
filesize=$5
|
||||
|
@ -109,7 +109,7 @@ echo "127.0.0.1 $domain # $app" | sudo tee -a /etc/hosts
|
|||
|
||||
# fill the superadmin creation form
|
||||
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 \
|
||||
--data-urlencode creation="1" \
|
||||
--data-urlencode login="$admin" \
|
||||
|
|
|
@ -9,6 +9,7 @@ source /usr/share/yunohost/helpers
|
|||
#retrieve arguments
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
domain=$(ynh_app_setting_get "$app" domain)
|
||||
path=$(ynh_app_setting_get "$app" path)
|
||||
|
||||
# definie useful vars
|
||||
parent_path=/var/www
|
||||
|
|
Loading…
Reference in a new issue