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:
parent
2ee0cd2b8e
commit
52d6a97c21
3 changed files with 18 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue