mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Fix #6
This commit is contained in:
parent
442ce331d6
commit
d3ca3da0a9
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue