1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-11-01 03:02:35 +00:00

script support raspbian

This commit is contained in:
BlackcatRs 2021-03-27 13:07:36 +01:00
parent 85f251cc81
commit 05e4e01cc9

View File

@ -134,6 +134,10 @@ function installWireGuard() {
apt update apt update
apt-get install -y iptables resolvconf qrencode apt-get install -y iptables resolvconf qrencode
apt-get install -y -t buster-backports wireguard apt-get install -y -t buster-backports wireguard
elif [[ ${OS} == 'raspbian' ]]; then
apt update
apt-get install -y iptables resolvconf qrencode
apt-get install -y wireguard
elif [[ ${OS} == 'fedora' ]]; then elif [[ ${OS} == 'fedora' ]]; then
if [[ ${VERSION_ID} -lt 32 ]]; then if [[ ${VERSION_ID} -lt 32 ]]; then
dnf install -y dnf-plugins-core dnf install -y dnf-plugins-core
@ -368,7 +372,7 @@ function uninstallWg() {
if [[ ${OS} == 'ubuntu' ]]; then if [[ ${OS} == 'ubuntu' ]]; then
apt-get autoremove --purge -y wireguard qrencode apt-get autoremove --purge -y wireguard qrencode
elif [[ ${OS} == 'debian' ]]; then elif [[ ${OS} == 'debian' || ${OS} == 'raspbian' ]]; then
apt-get autoremove --purge -y wireguard qrencode apt-get autoremove --purge -y wireguard qrencode
elif [[ ${OS} == 'fedora' ]]; then elif [[ ${OS} == 'fedora' ]]; then
dnf remove -y wireguard-tools qrencode dnf remove -y wireguard-tools qrencode