mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
Update restore
This commit is contained in:
parent
bcc0872fe3
commit
9ae5cfbe57
1 changed files with 9 additions and 9 deletions
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||||
set -e
|
set -eu
|
||||||
|
|
||||||
# Source YNH helpers
|
# Source app helpers
|
||||||
. /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
# This is a multi-instance app, meaning it can be installed several times independently
|
# This is a multi-instance app, meaning it can be installed several times independently
|
||||||
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||||
|
@ -19,13 +19,13 @@ set -e
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$(sudo yunohost app setting $app domain)
|
domain=$(sudo ynh_app_setting_set $app domain)
|
||||||
|
|
||||||
# Get old parameter of the app
|
# Get old parameter of the app
|
||||||
domain=$(sudo yunohost app setting $app domain)
|
domain=$(sudo ynh_app_setting_set $app domain)
|
||||||
path=$(sudo yunohost app setting $app path)
|
path=$(sudo ynh_app_setting_set $app path)
|
||||||
user=$(sudo yunohost app setting $app allowed_users)
|
user=$(sudo ynh_app_setting_set $app allowed_users)
|
||||||
is_public=$(sudo yunohost app setting $app is_public)
|
is_public=$(sudo ynh_app_setting_set $app is_public)
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain$path -a $app
|
sudo yunohost app checkurl $domain$path -a $app
|
||||||
|
@ -62,5 +62,5 @@ sudo service nginx reload
|
||||||
# Set ssowat config
|
# Set ssowat config
|
||||||
if [ "$is_public" = "Yes" ];
|
if [ "$is_public" = "Yes" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
sudo ynh_app_setting_set $app unprotected_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue