mirror of
https://github.com/tailscale-dev/deck-tailscale.git
synced 2025-10-23 16:00:55 +00:00
add &>/dev/null and error messages because commands are sending output to stderr even on success
This commit is contained in:
@@ -35,17 +35,17 @@ echo -n "Removing Legacy Installations..."
|
|||||||
|
|
||||||
# Stop and disable the systemd service
|
# Stop and disable the systemd service
|
||||||
if systemctl is-active --quiet tailscaled; then
|
if systemctl is-active --quiet tailscaled; then
|
||||||
systemctl stop tailscaled
|
systemctl stop tailscaled &>/dev/null || echo "ERROR: could not stop tailscaled"
|
||||||
fi
|
fi
|
||||||
if systemctl is-enabled --quiet tailscaled; then
|
if systemctl is-enabled --quiet tailscaled; then
|
||||||
systemctl disable tailscaled
|
systemctl disable tailscaled &>/dev/null || echo "ERROR: could not disable tailscaled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove the systemd system extension
|
# Remove the systemd system extension
|
||||||
if [ $(systemd-sysext list | grep -c "/var/lib/extensions/tailscale") -ne 0 ]; then
|
if [ $(systemd-sysext list | grep -c "/var/lib/extensions/tailscale") -ne 0 ]; then
|
||||||
systemd-sysext unmerge > /dev/null
|
systemd-sysext unmerge &>/dev/null || echo "ERROR: could not unmerge system extensions"
|
||||||
rm -rf /var/lib/extensions/tailscale
|
rm -rf /var/lib/extensions/tailscale
|
||||||
systemd-sysext merge > /dev/null
|
systemd-sysext merge &>/dev/null || echo "ERROR: could not merge system extensions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove the overrides conf
|
# Remove the overrides conf
|
||||||
@@ -69,7 +69,6 @@ cp -rf $tar_dir/tailscaled /opt/tailscale/tailscaled
|
|||||||
|
|
||||||
# add binaries to path via profile.d
|
# add binaries to path via profile.d
|
||||||
if ! test -f /etc/profile.d/tailscale.sh; then
|
if ! test -f /etc/profile.d/tailscale.sh; then
|
||||||
mkdir -p /etc/profile.d/tailscale.sh
|
|
||||||
echo 'PATH="$PATH:/home/deck/.bin"' >> /etc/profile.d/tailscale.sh
|
echo 'PATH="$PATH:/home/deck/.bin"' >> /etc/profile.d/tailscale.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user