mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
update
This commit is contained in:
parent
a69acbafbd
commit
6ac5fa65f2
1 changed files with 11 additions and 15 deletions
|
@ -80,21 +80,6 @@ sudo cp ../conf/php-fpm.conf "$phpfpm_conf"
|
||||||
sudo chown root: "$phpfpm_conf"
|
sudo chown root: "$phpfpm_conf"
|
||||||
sudo chmod 644 "$phpfpm_conf"
|
sudo chmod 644 "$phpfpm_conf"
|
||||||
|
|
||||||
# create the superadmin
|
|
||||||
## set temporary public access
|
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
|
||||||
## start app
|
|
||||||
sudo service php5-fpm restart || true
|
|
||||||
sudo service nginx restart || true
|
|
||||||
## fill the superadmin creation form
|
|
||||||
curl_path=$([ "$path" == "/" ] || echo "$path")
|
|
||||||
sudo curl -k -X POST \
|
|
||||||
--data-urlencode creation="1" \
|
|
||||||
--data-urlencode login="$admin" \
|
|
||||||
--data-urlencode pass="$password" \
|
|
||||||
--data-urlencode confirm="$password" \
|
|
||||||
https://"$domain""$curl_path"/index.php?p=login > /dev/null 2>&1
|
|
||||||
|
|
||||||
# if app is private, remove url to SSOWat conf from skipped_uris
|
# if app is private, remove url to SSOWat conf from skipped_uris
|
||||||
if [ "$is_public" = "No" ];
|
if [ "$is_public" = "No" ];
|
||||||
then
|
then
|
||||||
|
@ -109,8 +94,19 @@ then
|
||||||
"${domainluaregex}${pathluaregex}/private/temp/.+%.zip$", \
|
"${domainluaregex}${pathluaregex}/private/temp/.+%.zip$", \
|
||||||
"${domainluaregex}${pathluaregex}/core/js/.*$", \
|
"${domainluaregex}${pathluaregex}/core/js/.*$", \
|
||||||
"${domainluaregex}${pathluaregex}/templates/.*$"
|
"${domainluaregex}${pathluaregex}/templates/.*$"
|
||||||
|
else
|
||||||
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# restart services
|
# restart services
|
||||||
sudo service php5-fpm restart || true
|
sudo service php5-fpm restart || true
|
||||||
sudo service nginx restart || true
|
sudo service nginx restart || true
|
||||||
|
|
||||||
|
# fill the superadmin creation form
|
||||||
|
curl_path=$([ "$path" == "/" ] || echo "$path")
|
||||||
|
curl -k -X POST \
|
||||||
|
--data-urlencode creation="1" \
|
||||||
|
--data-urlencode login="$admin" \
|
||||||
|
--data-urlencode pass="$password" \
|
||||||
|
--data-urlencode confirm="$password" \
|
||||||
|
https://"$domain""$curl_path"/index.php?p=login #> /dev/null 2>&1
|
||||||
|
|
Loading…
Add table
Reference in a new issue