1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunorunner_ynh.git synced 2024-09-03 20:36:13 +02:00

Fix argument using _ not -

This commit is contained in:
Salamandar 2024-03-15 13:03:09 +01:00
parent 2c549fe00b
commit 2146effb72
3 changed files with 8 additions and 2 deletions

View file

@ -60,7 +60,7 @@ chown "$app:$app" "$install_dir/config.py"
#================================================= #=================================================
ynh_script_progression --message="Run Yunorunner's finish_install script..." ynh_script_progression --message="Run Yunorunner's finish_install script..."
if [ $context != "personal-ci" ] && [ "${PACKAGE_CHECK_EXEC:-0}" -ne 0 ]; then if [ "$context" == "official_infra" ] && [ "${PACKAGE_CHECK_EXEC:-0}" -ne 0 ]; then
tweak_yunohost tweak_yunohost
fi fi

View file

@ -35,6 +35,12 @@ 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
# Values now use underscore
if echo "$context" | grep -- -; then
context=$(echo "$context" | tr - _)
ynh_app_setting_set --app="$app" --key="context" --value="$context"
fi
# Remove Pythonz # Remove Pythonz
ynh_secure_remove --file="$install_dir/.pythonz" ynh_secure_remove --file="$install_dir/.pythonz"

View file

@ -4,7 +4,7 @@ test_format = 1.0
[default] [default]
args.context = "personal-ci" args.context = "personal_ci"
args.mode = "manual" args.mode = "manual"
args.cluster = false args.cluster = false