1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

check debian version and set php version

This commit is contained in:
anmol26s 2018-06-29 02:56:05 +05:30
parent 2ee0cd2b8e
commit 52d6a97c21
3 changed files with 18 additions and 0 deletions

View file

@ -170,3 +170,9 @@ fi
#================================================= #=================================================
systemctl reload php7.1-fpm systemctl reload php7.1-fpm
systemctl reload nginx systemctl reload nginx
# 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

@ -113,3 +113,9 @@ cd $final_path && sudo /usr/bin/php7.1 artisan passport:install
systemctl reload php7.1-fpm systemctl reload php7.1-fpm
systemctl reload nginx systemctl reload nginx
# 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

@ -184,3 +184,9 @@ fi
#================================================= #=================================================
systemctl reload php7.1-fpm systemctl reload php7.1-fpm
systemctl reload nginx systemctl reload nginx
# 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