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:
parent
5346bdf26f
commit
d05719dfff
3 changed files with 18 additions and 6 deletions
|
@ -176,5 +176,9 @@ fi
|
|||
#=================================================
|
||||
systemctl reload php7.1-fpm
|
||||
systemctl reload nginx
|
||||
# Set default php to php7.0
|
||||
update-alternatives --set php /usr/bin/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
|
||||
|
|
|
@ -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
|
||||
update-alternatives --set php /usr/bin/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
|
||||
|
|
|
@ -147,5 +147,9 @@ fi
|
|||
#=================================================
|
||||
|
||||
systemctl reload nginx
|
||||
# Set default php to php7.0
|
||||
update-alternatives --set php /usr/bin/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
|
||||
|
|
Loading…
Reference in a new issue