mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
v-commander: install nginx-rate-limit templates
This commit is contained in:
parent
7993d50276
commit
562ad763dd
1 changed files with 16 additions and 6 deletions
|
@ -78,12 +78,13 @@ myhelp() {
|
|||
echo "q = quit"
|
||||
echo "h = help"
|
||||
echo "-----------------------------"
|
||||
echo "inst v = install myVesta"
|
||||
echo "inst p = install multi-php"
|
||||
echo "inst pgw = install php-gate"
|
||||
echo "inst r = install new Roundcube"
|
||||
echo "inst memcached = install memcached"
|
||||
echo "inst redis = install Redis"
|
||||
echo "inst v = install myVesta"
|
||||
echo "inst p = install multi-php"
|
||||
echo "inst pgw = install php-gate"
|
||||
echo "inst r = install new Roundcube"
|
||||
echo "inst memcached = install memcached"
|
||||
echo "inst redis = install Redis"
|
||||
echo "inst nginx-rate-limit = install nginx-rate-limit templates"
|
||||
echo "dis fb = stop and disable fail2ban"
|
||||
echo "dis dove = stop and disable dovecot"
|
||||
echo "dis spam = stop and disable spam"
|
||||
|
@ -459,6 +460,15 @@ do
|
|||
echo "-------------------"
|
||||
fi
|
||||
|
||||
if [ "$answer" = 'inst nginx-rate-limit' ] || [ "$answer" = 'INST NGINX-RATE-LIMIT' ]; then
|
||||
echo "============================="
|
||||
echo "== Installing inst nginx-rate-limit templates"
|
||||
curl -O https://c.myvestacp.com/tools/rate-limit-tpl/install_rate_limit_tpl.sh
|
||||
bash install_rate_limit_tpl.sh
|
||||
echo "== nginx-rate-limit templates installed."
|
||||
echo "-------------------"
|
||||
fi
|
||||
|
||||
if [ "$answer" = 'check fc' ] || [ "$answer" = 'CHECK FC' ]; then
|
||||
echo "== Checking if FreshClam is up"
|
||||
clamavup=$(/usr/local/vesta/bin/v-list-sys-services | grep 'clamav-daemon' | grep -c 'running')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue