1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jappix_ynh.git synced 2024-09-03 19:26:19 +02:00

Update install

This commit is contained in:
abeudin 2014-06-18 11:38:45 +02:00
parent df7f50e2f0
commit 1d68ea0a12

View file

@ -3,6 +3,7 @@
# Retrieve arguments
domain=$1
path=$2
language=$3
# Check domain/path availability
sudo yunohost app checkurl $domain$path -a jappix
@ -29,6 +30,12 @@ if [ -z "$path" ]; then
path="/"
fi
ls $final_path/lang/$language > /dev/null 2>&1
if [ $? != 0 ];
then
language="en"
fi
sudo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sudo sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/jappix.conf