mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
scripts/installer.sh: enable Alpine community repo if needed (#11837)
The tailscale package is in the community Alpine repo. Check if it's commented out in `/etc/apk/repositories` and run `setup-apkrepos -c -1` if it's not. Fixes #11263 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
parent
5254f6de06
commit
d02f1be46a
@ -527,6 +527,14 @@ main() {
|
||||
;;
|
||||
apk)
|
||||
set -x
|
||||
if ! grep -Eq '^http.*\/community$' /etc/apk/repositories; then
|
||||
if type setup-apkrepos >/dev/null; then
|
||||
$SUDO setup-apkrepos -c -1
|
||||
else
|
||||
echo "installing tailscale requires the community repo to be enabled in /etc/apk/repositories"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
$SUDO apk add tailscale
|
||||
$SUDO rc-update add tailscale
|
||||
$SUDO rc-service tailscale start
|
||||
|
Loading…
Reference in New Issue
Block a user