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
|
||||
# DotClear 2 installation script for YunoHost
|
||||
|
||||
app=dotclear2
|
||||
domain=$1
|
||||
path=$2
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
|
||||
# Check domain/path availability asap
|
||||
check=`sudo yunohost app checkurl $domain$path -a $app`
|
||||
|
@ -15,7 +15,8 @@ fi
|
|||
|
||||
admin=$3
|
||||
admin_password=$4
|
||||
is_public=$5
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
|
||||
directory=/var/www/$app
|
||||
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'`
|
||||
|
@ -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
|
||||
# If app is public, leave as it is
|
||||
if [ "$is_public" = "No" ];
|
||||
if [ $is_public -eq 0 ];
|
||||
then
|
||||
# unprotected_uris allows SSO credentials to be passed anyway.
|
||||
sudo yunohost app setting $app protected_uris -v "/"
|
||||
|
|
Loading…
Reference in a new issue