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:
parent
2c549fe00b
commit
2146effb72
3 changed files with 8 additions and 2 deletions
|
@ -60,7 +60,7 @@ chown "$app:$app" "$install_dir/config.py"
|
|||
#=================================================
|
||||
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
|
||||
fi
|
||||
|
||||
|
|
|
@ -35,6 +35,12 @@ if yunohost firewall list | grep -q "\- $port$"; then
|
|||
ynh_exec_warn_less yunohost firewall disallow TCP "$port"
|
||||
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
|
||||
ynh_secure_remove --file="$install_dir/.pythonz"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ test_format = 1.0
|
|||
|
||||
[default]
|
||||
|
||||
args.context = "personal-ci"
|
||||
args.context = "personal_ci"
|
||||
args.mode = "manual"
|
||||
args.cluster = false
|
||||
|
||||
|
|
Loading…
Reference in a new issue