Skip to content

fixed error during CP of override.conf #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tailscale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# -o pipefail: the return value of a pipeline is the status of the last command to exit with a non-zero status, or zero if no command exited with a non-zero status
set -eu -o pipefail

# save the script's directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# save the current directory silently
pushd . > /dev/null

Expand Down Expand Up @@ -90,7 +93,7 @@ fi

# copy our override file in
mkdir -p /etc/systemd/system/tailscaled.service.d
cp -f override.conf /etc/systemd/system/tailscaled.service.d/override.conf
cp -f "${SCRIPT_DIR}/override.conf" /etc/systemd/system/tailscaled.service.d/override.conf

# capture the above override file in systemd
systemctl daemon-reload
Expand Down