1
0
Fork 0
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:
Salamandar 2024-03-15 14:35:31 +01:00
parent da9ee94a38
commit 02153981ee

View file

@ -44,7 +44,7 @@ if yunohost firewall list | grep -q "\- $port$"; then
ynh_exec_warn_less yunohost firewall disallow TCP "$port"
fi
if [[ -z "$context" ]]; then
if [[ -z "${context:-}" ]]; then
if grep -q "CI_APP" /etc/hosts; then
context=official_infra
else
@ -53,7 +53,7 @@ if [[ -z "$context" ]]; then
ynh_app_setting_set --app="$app" --key="context" --value="$context"
fi
if [[ -z "$cluster" ]]; then
if [[ -z "${cluster:-}" ]]; then
if incus cluster list >/dev/null 2>&1; then
cluster=1
else