Cleaner display of container differences.

Co-authored-by: Stanislas <stanislas.lange@pm.me>
This commit is contained in:
jaminmc 2021-02-19 21:05:56 -05:00 committed by GitHub
parent 0665813fc1
commit b2bbdc48d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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