diff --git a/git_update.sh b/git_update.sh index 0357f64..ce1c37d 100755 --- a/git_update.sh +++ b/git_update.sh @@ -59,16 +59,17 @@ resolve_configured_php_bin() { echo "keyhelp-php-domain" return fi - if command -v keyhelp-php84 >/dev/null 2>&1; then - echo "keyhelp-php84" + if [[ -x "/usr/bin/keyhelp-php-domain" ]]; then + echo "/usr/bin/keyhelp-php-domain" return fi - if command -v php >/dev/null 2>&1; then - echo "php" + if [[ -x "/usr/local/bin/keyhelp-php-domain" ]]; then + echo "/usr/local/bin/keyhelp-php-domain" return fi - echo "$current" - return + echo "Configured PHP binary 'keyhelp-php-domain' was not found." >&2 + echo "Set ACP -> System -> CLI to a working custom binary (e.g. keyhelp-php84)." >&2 + exit 1 fi if command -v "$trimmed" >/dev/null 2>&1; then @@ -81,7 +82,9 @@ resolve_configured_php_bin() { return 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() {