mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
immediately enforce disable IPv6 (#993)
This commit is contained in:
parent
24d94e089d
commit
1a8a13423c
77 changed files with 231 additions and 154 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
silent() { "$@" > /dev/null 2>&1; }
|
||||
if [ "$VERBOSE" == "yes" ]; then set -x; fi
|
||||
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; fi
|
||||
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
|
||||
YW=$(echo "\033[33m")
|
||||
RD=$(echo "\033[01;31m")
|
||||
BL=$(echo "\033[36m")
|
||||
|
@ -20,7 +21,7 @@ set -o pipefail
|
|||
shopt -s expand_aliases
|
||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
||||
trap die ERR
|
||||
silent() { "$@" > /dev/null 2>&1; }
|
||||
|
||||
function error_exit() {
|
||||
trap - ERR
|
||||
local reason="Unknown failure occurred."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue