1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/abantecart_ynh.git synced 2024-09-03 18:06:16 +02:00

Update install

This commit is contained in:
frju365 2017-02-24 13:31:00 +01:00 committed by GitHub
parent 9a8caf5ce1
commit 60671304e2

View file

@ -1,9 +1,9 @@
#!/bin/bash
source /usr/share/yunohost/helpers
source ./_common
source .fonctions
set -eu
source /usr/share/yunohost/helpers
# Retrieve app id
app=abantecart
@ -107,10 +107,10 @@ sudo cp ../conf/nginx.conf $nginxconf
sudo chown root: $nginxconf
sudo chmod 600 $nginxconf
sudo yunohost app setting $app is_public -v "$is_public"
ynh_app_setting_set "$app" is_public "$is_public"
if [ "$is_public" = "Yes" ];
then
sudo yunohost app setting $app unprotected_uris -v "/"
ynh_app_setting_set "$app" unprotected_uris "/"
fi
sudo rm -rf /var/www/$app/install/