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:
parent
9a8caf5ce1
commit
60671304e2
1 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source /usr/share/yunohost/helpers
|
|
||||||
source ./_common
|
source ./_common
|
||||||
source .fonctions
|
source .fonctions
|
||||||
set -eu
|
set -eu
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
# Retrieve app id
|
# Retrieve app id
|
||||||
app=abantecart
|
app=abantecart
|
||||||
|
@ -107,10 +107,10 @@ sudo cp ../conf/nginx.conf $nginxconf
|
||||||
sudo chown root: $nginxconf
|
sudo chown root: $nginxconf
|
||||||
sudo chmod 600 $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" ];
|
if [ "$is_public" = "Yes" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo rm -rf /var/www/$app/install/
|
sudo rm -rf /var/www/$app/install/
|
||||||
|
|
Loading…
Add table
Reference in a new issue