mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
misc
This commit is contained in:
parent
f4181b2c3d
commit
bb830abb58
1 changed files with 3 additions and 4 deletions
|
@ -12,7 +12,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
port=9001
|
port=9001
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain$path -a $app
|
sudo yunohost app checkurl $domain$path -a $app
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -44,7 +44,7 @@ if ! ynh_package_is_installed "nodejs-legacy" ; then
|
||||||
sudo apt-get install nodejs-legacy npm -y
|
sudo apt-get install nodejs-legacy npm -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create app dir and compy sources
|
# create app dir and copy sources
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
sudo mkdir -p $final_path
|
sudo mkdir -p $final_path
|
||||||
|
|
||||||
|
@ -77,8 +77,7 @@ sudo chown www-data /var/log/$app/$app.log
|
||||||
|
|
||||||
# nginx
|
# nginx
|
||||||
nginx_conf_path=/etc/nginx/conf.d/$domain.d/$app.conf
|
nginx_conf_path=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
if [ "$path" = "" ];
|
if [ "$path" = "" ]; then
|
||||||
then
|
|
||||||
sudo cp ../conf/nginx.conf-nosub $nginx_conf_path
|
sudo cp ../conf/nginx.conf-nosub $nginx_conf_path
|
||||||
else
|
else
|
||||||
sudo cp ../conf/nginx.conf $nginx_conf_path
|
sudo cp ../conf/nginx.conf $nginx_conf_path
|
||||||
|
|
Loading…
Add table
Reference in a new issue