mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-24 05:56:02 +03:00
remove resolvconf from installation
This commit is contained in:
parent
39caf2fcf6
commit
962c087eaf
@ -173,14 +173,14 @@ function installWireGuard() {
|
|||||||
# Install WireGuard tools and module
|
# Install WireGuard tools and module
|
||||||
if [[ ${OS} == 'ubuntu' ]] || [[ ${OS} == 'debian' && ${VERSION_ID} -gt 10 ]]; then
|
if [[ ${OS} == 'ubuntu' ]] || [[ ${OS} == 'debian' && ${VERSION_ID} -gt 10 ]]; then
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wireguard iptables resolvconf qrencode
|
apt-get install -y wireguard iptables qrencode
|
||||||
elif [[ ${OS} == 'debian' ]]; then
|
elif [[ ${OS} == 'debian' ]]; then
|
||||||
if ! grep -rqs "^deb .* buster-backports" /etc/apt/; then
|
if ! grep -rqs "^deb .* buster-backports" /etc/apt/; then
|
||||||
echo "deb http://deb.debian.org/debian buster-backports main" >/etc/apt/sources.list.d/backports.list
|
echo "deb http://deb.debian.org/debian buster-backports main" >/etc/apt/sources.list.d/backports.list
|
||||||
apt-get update
|
apt-get update
|
||||||
fi
|
fi
|
||||||
apt update
|
apt update
|
||||||
apt-get install -y iptables resolvconf qrencode
|
apt-get install -y iptables qrencode
|
||||||
apt-get install -y -t buster-backports wireguard
|
apt-get install -y -t buster-backports wireguard
|
||||||
elif [[ ${OS} == 'fedora' ]]; then
|
elif [[ ${OS} == 'fedora' ]]; then
|
||||||
if [[ ${VERSION_ID} -lt 32 ]]; then
|
if [[ ${VERSION_ID} -lt 32 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user