diff --git a/scripts/install b/scripts/install index 17aea38..28130cb 100755 --- a/scripts/install +++ b/scripts/install @@ -1,7 +1,7 @@ #!/bin/bash # DotClear 2 installation script for YunoHost -app=dotclear2 +app=dotclear2_test2 domain=$1 path=$2 @@ -40,7 +40,6 @@ sudo yunohost app setting $app mysqlpwd -v $db_password cd /tmp sudo wget http://download.dotclear.org/latest.tar.gz -O $app.tgz sudo tar xf $app.tgz -sudo mkdir -p $directory sudo mv dotclear $directory sudo rm -f $app.tgz cd $directory @@ -52,7 +51,7 @@ sudo sed -i -e "s;'DC_DBDRIVER','';'DC_DBDRIVER','mysqli';" -e "s;'DC_DBHOST','' # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf -sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.conf +sed -i "s@YNH_WWW_ALIAS@$directory/@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # If app is public, add url to SSOWat conf as skipped_uris