mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 05:34:34 +08:00
Update alpineInit.sh
This commit is contained in:
parent
86efd57340
commit
e069709bc7
1 changed files with 3 additions and 2 deletions
|
@ -175,16 +175,17 @@ rc-update add seedrng boot
|
||||||
sed -ri 's/ash/bash/g' /etc/passwd
|
sed -ri 's/ash/bash/g' /etc/passwd
|
||||||
|
|
||||||
# Insall more components.
|
# Insall more components.
|
||||||
apk update
|
|
||||||
if [[ "$setFail2banStatus" == "1" && "$lowMemMode" != "1" ]]; then
|
if [[ "$setFail2banStatus" == "1" && "$lowMemMode" != "1" ]]; then
|
||||||
|
apk update
|
||||||
apk add bind-tools curl e2fsprogs fail2ban grub lsblk lsof net-tools util-linux vim wget
|
apk add bind-tools curl e2fsprogs fail2ban grub lsblk lsof net-tools util-linux vim wget
|
||||||
# Config fail2ban
|
# Config fail2ban
|
||||||
sed -i '/^\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf
|
sed -i '/^\[Definition\]/a allowipv6 = auto' /etc/fail2ban/fail2ban.conf
|
||||||
rc-update add fail2ban
|
rc-update add fail2ban
|
||||||
/etc/init.d/fail2ban start
|
/etc/init.d/fail2ban start
|
||||||
elif [[ "$lowMemMode" == "1" ]]; then
|
elif [[ "$lowMemMode" == "1" ]]; then
|
||||||
apk add bind-tools grub net-tools util-linux
|
echo ""
|
||||||
else
|
else
|
||||||
|
apk update
|
||||||
apk add bind-tools curl e2fsprogs grub lsblk lsof net-tools util-linux vim wget
|
apk add bind-tools curl e2fsprogs grub lsblk lsof net-tools util-linux vim wget
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue