diff --git a/plugins/php-apt/versions/common/phalcon.sh b/plugins/php-apt/versions/common/phalcon.sh new file mode 100755 index 000000000..2906b957e --- /dev/null +++ b/plugins/php-apt/versions/common/phalcon.sh @@ -0,0 +1,45 @@ +#!/bin/bash +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin +export PATH + +curPath=`pwd` +rootPath=$(dirname "$curPath") +rootPath=$(dirname "$rootPath") +rootPath=$(dirname "$rootPath") +rootPath=$(dirname "$rootPath") +serverPath=$(dirname "$rootPath") +sourcePath=${serverPath}/source/php + +actionType=$1 +version=$2 + +sysName=`uname` +LIBNAME=phalcon +LIBV=0 + +CMD='apt ' +if [ "$actionType" == 'install' ];then + CMD="$CMD install -y " +elif [ "$actionType" == 'uninstall' ];then + CMD="$CMD uninstall -y " +fi + +if [ "$version" == '5.6' ];then + CMD="$CMD phalcon3" +elif [[ "$version" == '7.0' ]]; then + CMD="$CMD phalcon3" +elif [[ "$version" == '7.1' ]]; then + CMD="$CMD phalcon3" +elif [[ "$version" == '7.2' ]]; then + CMD="$CMD phalcon3" +elif [[ "$version" == '7.3' ]]; then + CMD="$CMD phalcon4" +elif [[ "$version" == '7.4' ]]; then + CMD="$CMD phalcon4" +elif [[ "$version" == '8.0' ]]; then + CMD="$CMD phalcon4" +elif [[ "$version" == '8.1' ]]; then + CMD="$CMD phalcon4" +fi + +$CMD