Skip to content

Commit bcf9bf3

Browse files
committed
fixing the cloudflare script
1 parent 144838c commit bcf9bf3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

systemd/cloudflare-ddns.service

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ Wants=network-online.target
66

77
[Service]
88
Type=oneshot
9+
Environment="CF_API_TOKEN_FILE=%h/.config/cloudflare/credentials"
10+
# Add Homebrew to PATH (Linux Homebrew location)
11+
Environment="PATH=/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
912

10-
# Run the DDNS update script
11-
# Note: Script will source credentials internally
12-
ExecStart=/bin/bash -c 'source %h/.config/cloudflare/credentials && %h/src/tfmalt/utility-scripts/scripts/cloudflare-ddns.sh'
13-
14-
# Basic security hardening (compatible with user services)
15-
PrivateTmp=yes
13+
# Run the DDNS update script with explicit bash and sourcing
14+
ExecStart=/bin/bash -c 'set -a; source ${CF_API_TOKEN_FILE}; set +a; exec %h/src/tfmalt/utility-scripts/scripts/cloudflare-ddns.sh'
1615

1716
# Logging
1817
StandardOutput=journal

0 commit comments

Comments
 (0)