make the update more verbose for testing
This commit is contained in:
@@ -59,16 +59,17 @@ resolve_configured_php_bin() {
|
|||||||
echo "keyhelp-php-domain"
|
echo "keyhelp-php-domain"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if command -v keyhelp-php84 >/dev/null 2>&1; then
|
if [[ -x "/usr/bin/keyhelp-php-domain" ]]; then
|
||||||
echo "keyhelp-php84"
|
echo "/usr/bin/keyhelp-php-domain"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if command -v php >/dev/null 2>&1; then
|
if [[ -x "/usr/local/bin/keyhelp-php-domain" ]]; then
|
||||||
echo "php"
|
echo "/usr/local/bin/keyhelp-php-domain"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
echo "$current"
|
echo "Configured PHP binary 'keyhelp-php-domain' was not found." >&2
|
||||||
return
|
echo "Set ACP -> System -> CLI to a working custom binary (e.g. keyhelp-php84)." >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v "$trimmed" >/dev/null 2>&1; then
|
if command -v "$trimmed" >/dev/null 2>&1; then
|
||||||
@@ -81,7 +82,9 @@ resolve_configured_php_bin() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$current"
|
echo "Configured PHP binary '$trimmed' is not executable/resolvable." >&2
|
||||||
|
echo "Set ACP -> System -> CLI to a valid command or absolute executable path." >&2
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
read_setting_php_bin() {
|
read_setting_php_bin() {
|
||||||
|
|||||||
Reference in New Issue
Block a user