mirror of
https://github.com/EngineGPDev/Autoinstall.git
synced 2025-01-18 22:02:22 +03:00
Added installation of the required default php version
This commit is contained in:
parent
cee72fbac8
commit
d50645c122
@ -408,6 +408,14 @@ EOF
|
||||
fi
|
||||
done
|
||||
|
||||
# Установка версии php по умолчанию
|
||||
if [[ "$(php -v | grep -oP '(?<=PHP )(\d+\.\d+)')" != "$verPHP" ]]; then
|
||||
sudo update-alternatives --set php /usr/bin/php$verPHP >> $logsINST 2>&1
|
||||
sudo update-alternatives --set php-config /usr/bin/php-config$verPHP >> $logsINST 2>&1
|
||||
sudo update-alternatives --set phpdbg /usr/bin/phpdbg$verPHP >> $logsINST 2>&1
|
||||
sudo update-alternatives --set phpize /usr/bin/phpize$verPHP >> $logsINST 2>&1
|
||||
fi
|
||||
|
||||
# Установка phpMyAdmin
|
||||
if ! dpkg-query -W -f='${Status}' "phpmyadmin" 2>/dev/null | grep -q "install ok installed"; then
|
||||
echo "===================================" >> $logsINST 2>&1
|
||||
|
Loading…
Reference in New Issue
Block a user