From ffbad7a1301307635a4a8185cfc176be9c7d0af0 Mon Sep 17 00:00:00 2001 From: Joe Ferguson Date: Sun, 8 Oct 2017 08:15:24 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Use=20update-alternatives=20instead?= =?UTF-8?q?=20of=20symlinks=20for=20php=20version=20management=20on=20cli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/aliases | 9 +++------ resources/localized/aliases | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/resources/aliases b/resources/aliases index 66831ea5f..10f278b4b 100644 --- a/resources/aliases +++ b/resources/aliases @@ -27,18 +27,15 @@ function dusk() { } function php56() { - sudo rm /usr/bin/php - sudo ln -s /usr/bin/php5.6 /usr/bin/php + sudo update-alternatives --set php /usr/bin/php5.6 } function php70() { - sudo rm /usr/bin/php - sudo ln -s /usr/bin/php7.0 /usr/bin/php + sudo update-alternatives --set php /usr/bin/php7.0 } function php71() { - sudo rm /usr/bin/php - sudo ln -s /usr/bin/php7.1 /usr/bin/php + sudo update-alternatives --set php /usr/bin/php7.1 } function serve-apache() { diff --git a/resources/localized/aliases b/resources/localized/aliases index 11735a807..308fb8167 100644 --- a/resources/localized/aliases +++ b/resources/localized/aliases @@ -27,18 +27,15 @@ function dusk() { } function php56() { - sudo rm /usr/bin/php - sudo ln -s /usr/bin/php5.6 /usr/bin/php + sudo update-alternatives --set php /usr/bin/php5.6 } function php70() { - sudo rm /usr/bin/php - sudo ln -s /usr/bin/php7.0 /usr/bin/php + sudo update-alternatives --set php /usr/bin/php7.0 } function php71() { - sudo rm /usr/bin/php - sudo ln -s /usr/bin/php7.1 /usr/bin/php + sudo update-alternatives --set php /usr/bin/php7.1 } function serve-apache() {