Skip to content

Commit

Permalink
Merge pull request #42 from SierraSoftworks/feat/unios_2.x
Browse files Browse the repository at this point in the history
feat: Store tailscaled state on /data for UniFi OS 2.x+
  • Loading branch information
notheotherben authored Feb 10, 2023
2 parents f8979d6 + 9567f5a commit 387e5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/unios_2.x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ _tailscale_install() {
apt install -y tailscale="${VERSION}"

echo "Configuring Tailscale to use userspace networking..."
sed -i 's/FLAGS=""/FLAGS="--tun userspace-networking"/' /etc/default/tailscaled || {
sed -i 's/FLAGS=""/FLAGS="--state /data/tailscale/tailscaled.state --tun userspace-networking"/' /etc/default/tailscaled || {
echo "Failed to configure Tailscale to use userspace networking"
echo "Check that the file /etc/default/tailscaled exists and contains the line FLAGS=\"--tun userspace-networking\"."
echo "Check that the file /etc/default/tailscaled exists and contains the line FLAGS=\"--state /data/tailscale/tailscale.state --tun userspace-networking\"."
exit 1
}

Expand Down

0 comments on commit 387e5c2

Please sign in to comment.