Update wireguard.sh
ensure repos are update and thus existing
This commit is contained in:
parent
d2083479d5
commit
a66c631e16
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ test "$(id -u)" = 0 || exec sudo "$0"
|
||||||
|
|
||||||
|
|
||||||
# if needed install
|
# if needed install
|
||||||
dpkg -l | grep wireguard-tools || apt-get install -y wireguard-tools
|
dpkg -l | grep wireguard-tools || { apt-get update; apt-get install -y wireguard-tools; }
|
||||||
dpkg -l | grep python3-qrcodegen || apt-get install -y python3-qrcodegen
|
dpkg -l | grep python3-qrcodegen || { apt-get update; apt-get install -y python3-qrcodegen; }
|
||||||
test -f /bin/qrcode || {
|
test -f /bin/qrcode || {
|
||||||
cat >/bin/qrcode << 'PYTHON'
|
cat >/bin/qrcode << 'PYTHON'
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
Loading…
Add table
Reference in a new issue