minor
This commit is contained in:
parent
ad4ce6a371
commit
c59eb57d92
@ -163,7 +163,7 @@ configure_hostname() {
|
|||||||
|
|
||||||
if [[ $response =~ ^[Yy]$ ]]; then
|
if [[ $response =~ ^[Yy]$ ]]; then
|
||||||
read -p "hostname: " new_hostname
|
read -p "hostname: " new_hostname
|
||||||
echo $new_hostname | tee /etc/hostname > /dev/null
|
echo $new_hostname | tee /etc/hostname >/dev/null
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,6 +176,8 @@ configure_timedate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
configure_fail2ban() {
|
configure_fail2ban() {
|
||||||
|
[ -f /etc/fail2ban/jail.local ] && return
|
||||||
|
|
||||||
read -p "要配置 fail2ban 吗?[Y]: " response
|
read -p "要配置 fail2ban 吗?[Y]: " response
|
||||||
|
|
||||||
if [[ $response =~ ^[Yy]$ ]]; then
|
if [[ $response =~ ^[Yy]$ ]]; then
|
||||||
|
|||||||
@ -163,7 +163,7 @@ configure_hostname() {
|
|||||||
|
|
||||||
if [[ $response =~ ^[Yy]$ ]]; then
|
if [[ $response =~ ^[Yy]$ ]]; then
|
||||||
read -p "hostname: " new_hostname
|
read -p "hostname: " new_hostname
|
||||||
echo $new_hostname | sudo tee /etc/hostname > /dev/null
|
echo $new_hostname | sudo tee /etc/hostname >/dev/null
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,6 +176,8 @@ configure_timedate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
configure_fail2ban() {
|
configure_fail2ban() {
|
||||||
|
[ -f /etc/fail2ban/jail.local ] && return
|
||||||
|
|
||||||
read -p "要配置 fail2ban 吗?[Y]: " response
|
read -p "要配置 fail2ban 吗?[Y]: " response
|
||||||
|
|
||||||
if [[ $response =~ ^[Yy]$ ]]; then
|
if [[ $response =~ ^[Yy]$ ]]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user