mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Update install
This commit is contained in:
parent
4639565637
commit
abf164a3bf
1 changed files with 6 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# DotClear 2 installation script for YunoHost
|
# DotClear 2 installation script for YunoHost
|
||||||
|
|
||||||
app=dotclear2
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
domain=$1
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path=$2
|
path_url=$YNH_APP_ARG_PATH
|
||||||
|
|
||||||
# Check domain/path availability asap
|
# Check domain/path availability asap
|
||||||
check=`sudo yunohost app checkurl $domain$path -a $app`
|
check=`sudo yunohost app checkurl $domain$path -a $app`
|
||||||
|
@ -15,7 +15,8 @@ fi
|
||||||
|
|
||||||
admin=$3
|
admin=$3
|
||||||
admin_password=$4
|
admin_password=$4
|
||||||
is_public=$5
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
|
||||||
directory=/var/www/$app
|
directory=/var/www/$app
|
||||||
php_config=$directory/inc/config.php
|
php_config=$directory/inc/config.php
|
||||||
master_key=`dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p'`
|
master_key=`dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p'`
|
||||||
|
@ -62,7 +63,7 @@ success=`curl -L --cacert /etc/yunohost/certs/$domain/ca.pem -F "u_email=$email"
|
||||||
|
|
||||||
# Now that we curl'ed the setup we can lock the UI if it's private
|
# Now that we curl'ed the setup we can lock the UI if it's private
|
||||||
# If app is public, leave as it is
|
# If app is public, leave as it is
|
||||||
if [ "$is_public" = "No" ];
|
if [ $is_public -eq 0 ];
|
||||||
then
|
then
|
||||||
# unprotected_uris allows SSO credentials to be passed anyway.
|
# unprotected_uris allows SSO credentials to be passed anyway.
|
||||||
sudo yunohost app setting $app protected_uris -v "/"
|
sudo yunohost app setting $app protected_uris -v "/"
|
||||||
|
|
Loading…
Reference in a new issue