Merge pull request #160 from YunoHost/fix-install-args

add key=value args if not present in install_app script
This commit is contained in:
Alexandre Aubin 2024-06-24 15:34:17 +02:00 committed by GitHub
commit 99e670fbb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,6 +130,9 @@ _INSTALL_APP () {
&& continue && continue
install_args=$(echo $install_args | sed "s@\&$key=[^&]*\&@\&$key=$value\&@") install_args=$(echo $install_args | sed "s@\&$key=[^&]*\&@\&$key=$value\&@")
if ! echo $install_args | grep -q $key; then
install_args+="$key=$value&"
fi
done done
# Note : we do this at this stage and not during the parsing of check_process # Note : we do this at this stage and not during the parsing of check_process