pull/121/head
midoks 3 years ago
parent f352b172fd
commit 4a3986b948
  1. 2
      plugins/mysql-ya/versions/8.0/install.sh
  2. 6
      plugins/php-apt/versions/common.sh
  3. 6
      plugins/php-apt/versions/common/yaf.sh

@ -77,7 +77,7 @@ APT_INSTALL()
{
########
wget -O /tmp/mysql-apt-config_0.8.22-1_all.deb https://repo.mysql.com/mysql-apt-config_0.8.22-1_all.deb
dpkg -i /tmp/mysql-apt-config_0.8.22-1_all.deb
apt install /tmp/mysql-apt-config_0.8.22-1_all.deb
apt update -y
apt install -y mysql-server

@ -19,6 +19,7 @@ extName=$3
# echo $serverPath
FILE=${curPath}/${version}/${extName}.sh
FILE_COMMON=${curPath}/common/${extName}.sh
# apt install -y php81-php-yar
@ -27,6 +28,8 @@ if [ "$action" == 'install' ];then
if [ -f $FILE ];then
bash ${curPath}/${version}/${extName}.sh install
elif [ -f $FILE_COMMON ];then
bash ${FILE_COMMON} install ${version}
else
apt install -y php${version}-${extName}
fi
@ -35,9 +38,10 @@ fi
# apt remove -y php81-php-yar
if [ "$action" == 'uninstall' ];then
if [ -f $FILE ];then
bash ${curPath}/${version}/${extName}.sh uninstall
elif [ -f $FILE_COMMON ];then
bash ${FILE_COMMON} uninstall ${version}
else
apt remove -y php${version}-${extName}
fi

@ -0,0 +1,6 @@
#!/bin/bash
action=$1
version=$2
Loading…
Cancel
Save