mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
update
This commit is contained in:
parent
f27168e73a
commit
3c38424f79
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,6 @@ install_required_modules() {
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_duplicate_lines() {
|
remove_duplicate_lines() {
|
||||||
# 去除重复行并跳过空行
|
|
||||||
awk '!NF || !x[$0]++' "$1" > "$1.tmp" && mv -f "$1.tmp" "$1"
|
awk '!NF || !x[$0]++' "$1" > "$1.tmp" && mv -f "$1.tmp" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,4 +180,5 @@ service ssh restart
|
||||||
service sshd restart
|
service sshd restart
|
||||||
systemctl restart sshd
|
systemctl restart sshd
|
||||||
systemctl restart ssh
|
systemctl restart ssh
|
||||||
|
sed -i 's/.*precedence ::ffff:0:0\/96.*/precedence ::ffff:0:0\/96 100/g' /etc/gai.conf && systemctl restart networking
|
||||||
rm -rf "$0"
|
rm -rf "$0"
|
||||||
|
|
Loading…
Reference in a new issue