mirror of
https://github.com/YunoHost-Apps/framagames_ynh.git
synced 2024-09-03 18:36:28 +02:00
cleaning
This commit is contained in:
parent
e72a57fab9
commit
fccc12b6ec
1 changed files with 2 additions and 4 deletions
|
@ -6,10 +6,11 @@ domain=$1
|
|||
path=$2
|
||||
is_public=$3
|
||||
|
||||
sudo yunohost app setting $app path -v $path
|
||||
|
||||
if [ $path = "/" ]
|
||||
then
|
||||
sitename="root"
|
||||
sudo yunohost app setting $app path -v $path
|
||||
else
|
||||
# sitename == path without any "/"
|
||||
sitename=$(echo $path | cut -d '/' -f 2)
|
||||
|
@ -20,9 +21,6 @@ fi
|
|||
|
||||
final_path=/var/www/webapp\_multi/$domain/$sitename
|
||||
|
||||
sudo yunohost app setting $app path -v $path
|
||||
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl $domain$path -a $app
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue