Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/php-apt/versions/common/phalcon.sh

46 lines
990 B

#!/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