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:
parent
df7f50e2f0
commit
1d68ea0a12
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue