1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00
This commit is contained in:
Rémy Garrigue 2015-08-21 08:01:34 +00:00
parent 442ce331d6
commit d3ca3da0a9

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# DotClear 2 installation script for YunoHost # DotClear 2 installation script for YunoHost
app=dotclear2 app=dotclear2_test2
domain=$1 domain=$1
path=$2 path=$2
@ -40,7 +40,6 @@ sudo yunohost app setting $app mysqlpwd -v $db_password
cd /tmp cd /tmp
sudo wget http://download.dotclear.org/latest.tar.gz -O $app.tgz sudo wget http://download.dotclear.org/latest.tar.gz -O $app.tgz
sudo tar xf $app.tgz sudo tar xf $app.tgz
sudo mkdir -p $directory
sudo mv dotclear $directory sudo mv dotclear $directory
sudo rm -f $app.tgz sudo rm -f $app.tgz
cd $directory 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 # 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_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 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 # If app is public, add url to SSOWat conf as skipped_uris