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:
parent
85f251cc81
commit
05e4e01cc9
@ -134,6 +134,10 @@ function installWireGuard() {
|
||||
apt update
|
||||
apt-get install -y iptables resolvconf qrencode
|
||||
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
|
||||
if [[ ${VERSION_ID} -lt 32 ]]; then
|
||||
dnf install -y dnf-plugins-core
|
||||
@ -368,7 +372,7 @@ function uninstallWg() {
|
||||
|
||||
if [[ ${OS} == 'ubuntu' ]]; then
|
||||
apt-get autoremove --purge -y wireguard qrencode
|
||||
elif [[ ${OS} == 'debian' ]]; then
|
||||
elif [[ ${OS} == 'debian' || ${OS} == 'raspbian' ]]; then
|
||||
apt-get autoremove --purge -y wireguard qrencode
|
||||
elif [[ ${OS} == 'fedora' ]]; then
|
||||
dnf remove -y wireguard-tools qrencode
|
||||
|
Loading…
Reference in New Issue
Block a user