mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-27 23:36:01 +03:00
Cleaner display of container differences.
Co-authored-by: Stanislas <stanislas.lange@pm.me>
This commit is contained in:
parent
0665813fc1
commit
b2bbdc48d8
@ -136,13 +136,12 @@ function installWireGuard() {
|
|||||||
# Install WireGuard tools and module
|
# Install WireGuard tools and module
|
||||||
if [[ ${OS} == 'ubuntu' ]]; then
|
if [[ ${OS} == 'ubuntu' ]]; then
|
||||||
apt-get update
|
apt-get update
|
||||||
|
apt-get install -y iptables resolvconf qrencode
|
||||||
if [[ $Container == 1 ]]; then
|
if [[ $Container == 1 ]]; then
|
||||||
apt-get install -y wireguard-tools --no-install-recommends
|
apt-get install -y wireguard-tools --no-install-recommends
|
||||||
apt-get install -y iptables resolvconf qrencode
|
|
||||||
else
|
else
|
||||||
apt-get install -y wireguard iptables resolvconf qrencode
|
apt-get install -y wireguard
|
||||||
fi
|
fi
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user