mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update install.sh
This commit is contained in:
@@ -20,15 +20,11 @@ Install_App()
|
|||||||
apt install -y fail2ban
|
apt install -y fail2ban
|
||||||
|
|
||||||
mkdir -p $serverPath/fail2ban
|
mkdir -p $serverPath/fail2ban
|
||||||
sed '/^ *#/d' fail2ban.conf > $serverPath/fail2ban/redis.conf
|
|
||||||
|
|
||||||
echo "${VERSION}" > $serverPath/fail2ban/version.pl
|
echo "${VERSION}" > $serverPath/fail2ban/version.pl
|
||||||
echo '安装fail2ban完成'
|
echo '安装fail2ban完成'
|
||||||
|
|
||||||
cd ${rootPath} && python3 ${rootPath}/plugins/fail2ban/index.py start
|
cd ${rootPath} && python3 ${rootPath}/plugins/fail2ban/index.py start
|
||||||
cd ${rootPath} && python3 ${rootPath}/plugins/fail2ban/index.py initd_install
|
cd ${rootPath} && python3 ${rootPath}/plugins/fail2ban/index.py initd_install
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Uninstall_App()
|
Uninstall_App()
|
||||||
|
|||||||
Reference in New Issue
Block a user