From d3ca3da0a9e60893d9fcd5e934f1ad02552ba9db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Garrigue?= Date: Fri, 21 Aug 2015 08:01:34 +0000 Subject: [PATCH] Fix #6 --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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