mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-08-17 21:25:47 +02:00
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
20 lines
637 B
Bash
20 lines
637 B
Bash
#!/bin/bash
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
|
export PATH
|
|
|
|
mypip="/www/server/panel/pyenv/bin/pip3"
|
|
pyroute2_path="/www/server/panel/script/pyroute2-0.7.12-py3-none-any.whl"
|
|
|
|
change_pip_package_list=$( $mypip list | grep -E "pyroute2" )
|
|
|
|
pyroute2_v=$(echo "$change_pip_package_list" | grep pyroute2)
|
|
if [ "$pyroute2_v" = "" ];then
|
|
echo "Update pyroute2"
|
|
$mypip install $pyroute2_path
|
|
rm -f $pyroute2_path
|
|
|
|
pyroute2_v_2=$($mypip list |grep pyroute2)
|
|
if [ "$pyroute2_v_2" = "" ];then
|
|
$mypip install pyroute2
|
|
fi
|
|
fi |