You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
export APP_TAILSCALE_IP="10.21.21.80"
|
|
|
|
export APP_TAILSCALE_PORT="8240"
|
|
|
|
|
|
|
|
# Detect we are running in a tailscale install
|
|
|
|
if ! cat "${UMBREL_ROOT}/db/user.json" | grep '"tailscale"'
|
|
|
|
then
|
|
|
|
|
|
|
|
# Only patch unmodified v0.5.0 app script to prevent infinite loop or making weird changes to future app scripts
|
|
|
|
if sha256sum "${UMBREL_ROOT}/scripts/app" | grep 1620d0e2cfd9cb70e300e28cd3c93a03c00ee65175fe0281a71f62793cc05e19
|
|
|
|
then
|
|
|
|
echo "Detected Tailscale install, we need to patch the install script so this doesn't fail!"
|
|
|
|
|
|
|
|
echo "Patching app script..."
|
|
|
|
sed -i 's/^ wait_for_tor_hs/ [[ "${app}" != "tailscale" ]] \&\& wait_for_tor_hs/g' "${UMBREL_ROOT}/scripts/app"
|
|
|
|
|
|
|
|
echo "Attempting new install after patch"
|
|
|
|
"${UMBREL_ROOT}/scripts/app" install tailscale
|
|
|
|
|
|
|
|
exit # this kills the original install script process
|
|
|
|
fi
|
|
|
|
fi
|