File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments