Skip to content

Commit

Permalink
Merge pull request #99 from jasonwbarnett/jwb/modify-values
Browse files Browse the repository at this point in the history
feat: enable custom TAILSCALED_FLAGS

Closes #98
  • Loading branch information
notheotherben authored Dec 22, 2024
2 parents b2c8e4e + a9248df commit 03d0667
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ fi
# Extract the package
tar xzf "${WORKDIR}/tailscale.tgz" -C "$(dirname -- "${PACKAGE_ROOT}")"

# Update tailscale-env with modified values
if [ -n "${TAILSCALED_FLAGS:-}" ]; then
echo "TAILSCALED_FLAGS=\"${TAILSCALED_FLAGS}\"" >> "$package_root/tailscale-env"

Check warning on line 56 in install.sh

View workflow job for this annotation

GitHub Actions / Shellcheck

package_root is referenced but not assigned (did you mean 'PACKAGE_ROOT'?).
fi

# Run the setup script to ensure that Tailscale is installed
# shellcheck source=package/manage.sh
"$PACKAGE_ROOT/manage.sh" install "${TAILSCALE_VERSION}"
Expand Down

0 comments on commit 03d0667

Please sign in to comment.