mirror of
https://github.com/YunoHost-Apps/framagames_ynh.git
synced 2024-09-03 18:36:28 +02:00
Correction of typos
This commit is contained in:
parent
9694d4fa80
commit
75ae8bf38e
2 changed files with 12 additions and 12 deletions
|
@ -15,8 +15,7 @@ then
|
||||||
sitename="root"
|
sitename="root"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
folder=$app_$domain_$sitename
|
final_path=/var/www/$app\_$domain\_$sitename
|
||||||
final_path=/var/www/$folder
|
|
||||||
|
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
|
|
|
@ -1,16 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$(sudo yunohost app setting my_webapp domain)
|
app=webapp_multi
|
||||||
path=$(sudo yunohost app setting my_webapp path)
|
|
||||||
user=$(sudo yunohost app setting my_webapp ftp_user)
|
|
||||||
is_public=$(sudo yunohost app setting my_webapp is_public)
|
|
||||||
|
|
||||||
name=$(echo $2 | cut -d '/' -f 2)
|
domain=$(sudo yunohost app setting $app domain)
|
||||||
parent_dir=/var/www/webapp_$user
|
path=$(sudo yunohost app setting $app path)
|
||||||
final_path=$parent_dir$path
|
sitename=$(sudo yunohost app setting $app sitename)
|
||||||
|
user=$(sudo yunohost app setting $app user)
|
||||||
|
is_public=$(sudo yunohost app setting $app is_public)
|
||||||
|
final_path=$(sudo yunohost app setting $app final_path)
|
||||||
|
|
||||||
netftp_path=/ftp_webapp_$user
|
|
||||||
|
#netftp_path=/ftp_webapp_$user
|
||||||
|
|
||||||
# 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@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
|
@ -18,10 +19,10 @@ sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$name.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$name.conf
|
||||||
|
|
||||||
# Make app public if necessary
|
# Make app public if necessary
|
||||||
sudo yunohost app setting my_webapp is_public -v "$is_public"
|
sudo yunohost app setting $app is_public -v "$is_public"
|
||||||
if [ "$is_public" = "Yes" ];
|
if [ "$is_public" = "Yes" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting my_webapp skipped_uris -v "/"
|
sudo yunohost app setting $app skipped_uris -v "/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reload Nginx and regenerate SSOwat conf
|
# Reload Nginx and regenerate SSOwat conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue