Skip to content

Commit b5a4a1c

Browse files
authored
Setup Wizard: silent PHP messages
1 parent 5dd3525 commit b5a4a1c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

install-photobooth.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ function set_php_version_cli() {
763763
local priority
764764
priority=$(echo "$version" | tr -d '.')
765765

766-
update-alternatives --install /usr/bin/php php "$php_bin" "$priority"
767-
update-alternatives --set php "$php_bin"
766+
update-alternatives --install /usr/bin/php php "$php_bin" "$priority" >/dev/null 2>&1
767+
update-alternatives --set php "$php_bin" >/dev/null 2>&1
768768

769769
info "PHP CLI" "CLI php now points to: $(php -v | head -n1)"
770770
return 0
@@ -778,11 +778,9 @@ function set_php_version_apache() {
778778
return 1
779779
fi
780780

781-
# Disable all PHP Apache modules
782781
a2dismod -f php* >/dev/null 2>&1 || true
783782

784-
# Enable only the requested version
785-
if a2enmod "php${version}"; then
783+
if a2enmod "php${version}" >/dev/null 2>&1; then
786784
confirm "Apache Webserver" "Apache is now configured to use PHP ${version} (Note: Apache will apply this on next boot!)."
787785
return 0
788786
else

0 commit comments

Comments
 (0)