From 5e2c2d69a535fda44492c0f3eb49ffa9160daf50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Garrigue?= Date: Fri, 21 Aug 2015 09:17:21 +0000 Subject: [PATCH] Removed the last cd, which was preventing access to ../conf/nginx.conf --- scripts/install | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 28ccce5..18178cd 100755 --- a/scripts/install +++ b/scripts/install @@ -38,7 +38,6 @@ db_password=`sudo yunohost app initdb $app | tr -d '\n'` sudo yunohost app setting $app mysqlpwd -v $db_password # Get sources -cd /tmp sudo wget -nv http://download.dotclear.org/latest.tar.gz -O $app.tgz sudo tar xf $app.tgz sudo mv dotclear $directory @@ -49,6 +48,15 @@ sudo chown www-data:www-data -R $directory # Config as if we called in admin/install/wizard.php sudo sed -i -e "s;'DC_DBDRIVER','';'DC_DBDRIVER','mysqli';" -e "s;'DC_DBHOST','';'DC_DBHOST','localhost';" -e "s;'DC_DBUSER','';'DC_DBUSER','$app';" -e "s;'DC_DBPASSWORD','';'DC_DBPASSWORD','$db_password';" -e "s;'DC_DBNAME','';'DC_DBNAME','$app';" -e "s;'DC_MASTER_KEY','';'DC_MASTER_KEY','$master_key';" -e "s;'DC_ADMIN_URL','';'DC_ADMIN_URL','https://$domain$path/admin/index.php';" -e "s;'DC_ADMIN_MAILFROM','';'DC_ADMIN_MAILFROM','$email';" $php_config +echo ________________________________ +sudo apt-get install -y mlocate +sudo updatedb +locate nginx.conf +ls -l +ls -l * +echo ________________________________ + + # 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@$directory/@g" ../conf/nginx.conf