Files
aaPanel/install/install_soft.sh
T
Jack a24f2e23c6 Update to 7.25.0
1. Added Mail Marketing Automation trigger tasks
2. Added Mail Marketing Groups Import, Export, Merge
3. Added Mail Marketing Subscribers to support paste import
4. Added Mail Marketing Template Import Export Duplicate
5. Added Mail server add timed automatic reply
6. Added HTTPS Protection function for Website (disables automatic HTTP to HTTPS redirection when enabled)
7. Optimize Website Interface Button Integration
8. Optimize the response speed of WP Toolkit interface
2025-03-13 17:52:26 +08:00

40 lines
955 B
Bash

#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
serverUrl=https://node.aapanel.com/install
mtype=$1
actionType=$2
name=$3
version=$4
check_dash=$(readlink -f /bin/sh)
if [ "$check_dash" = "/usr/bin/dash" ] || [ "$check_dash" = "/bin/dash" ] || [ "$check_dash" = "dash" ]; then
if [ -f "/usr/bin/bash" ]; then
ln -sf /usr/bin/bash /bin/sh
elif [ -f "/bin/bash" ]; then
ln -sf /bin/bash /bin/sh
fi
fi
if [ ! -f 'lib.sh' ];then
wget -O lib.sh $serverUrl/$mtype/lib.sh --no-check-certificate
fi
libNull=`cat lib.sh`
if [ "$libNull" == '' ];then
wget --no-check-certificate -O lib.sh $serverUrl/$mtype/lib.sh
fi
wget --no-check-certificate -O $name.sh $serverUrl/$mtype/$name.sh
if [ "$actionType" == 'install' ];then
bash lib.sh
fi
sed -i 's/download\.bt\.cn/node\.aapanel\.com/g' $name.sh
bash $name.sh $actionType $version
echo '|-Successify --- Command executed! ---'