This commit is contained in:
Andrew Lytvynov 2024-04-26 15:30:05 +02:00 committed by GitHub
commit e266f62cf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

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