mirror of
https://github.com/YunoHost-Apps/yunorunner_ynh.git
synced 2024-09-03 20:36:13 +02:00
Fix missing variable in upgrade
This commit is contained in:
parent
da9ee94a38
commit
02153981ee
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ if yunohost firewall list | grep -q "\- $port$"; then
|
||||||
ynh_exec_warn_less yunohost firewall disallow TCP "$port"
|
ynh_exec_warn_less yunohost firewall disallow TCP "$port"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$context" ]]; then
|
if [[ -z "${context:-}" ]]; then
|
||||||
if grep -q "CI_APP" /etc/hosts; then
|
if grep -q "CI_APP" /etc/hosts; then
|
||||||
context=official_infra
|
context=official_infra
|
||||||
else
|
else
|
||||||
|
@ -53,7 +53,7 @@ if [[ -z "$context" ]]; then
|
||||||
ynh_app_setting_set --app="$app" --key="context" --value="$context"
|
ynh_app_setting_set --app="$app" --key="context" --value="$context"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$cluster" ]]; then
|
if [[ -z "${cluster:-}" ]]; then
|
||||||
if incus cluster list >/dev/null 2>&1; then
|
if incus cluster list >/dev/null 2>&1; then
|
||||||
cluster=1
|
cluster=1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue