1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

check debian version for update-alternatives

This commit is contained in:
anmol26s 2018-06-29 02:23:03 +05:30
parent 5346bdf26f
commit d05719dfff
3 changed files with 18 additions and 6 deletions

View file

@ -176,5 +176,9 @@ fi
#=================================================
systemctl reload php7.1-fpm
systemctl reload nginx
# Set default php to php7.0
# Set default php to php5 or php7.0
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
update-alternatives --set php /usr/bin/php5
else
update-alternatives --set php /usr/bin/php7.0
fi

View file

@ -115,5 +115,9 @@ ynh_restore_file "/etc/cron.d/$app"
systemctl reload php7.1-fpm
systemctl reload nginx
# Set default php to php7.0
# Set default php to php5 or php7.0
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
update-alternatives --set php /usr/bin/php5
else
update-alternatives --set php /usr/bin/php7.0
fi

View file

@ -147,5 +147,9 @@ fi
#=================================================
systemctl reload nginx
# Set default php to php7.0
# Set default php to php5 or php7.0
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
update-alternatives --set php /usr/bin/php5
else
update-alternatives --set php /usr/bin/php7.0
fi