tools: post-pull auto-setup hook + caveman (RTK-style token optimization)
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
[Unit]
|
||||
Description=Pull /opt/homelab-context from Gitea
|
||||
Description=Pull /opt/homelab-context from Gitea + auto-setup tooling
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/git -C /opt/homelab-context pull --ff-only --quiet
|
||||
ExecStart=/usr/bin/env bash /opt/homelab-context/tools/post-pull.sh
|
||||
TimeoutStartSec=60
|
||||
# Don't fail aggressively — a missed pull just retries next tick.
|
||||
SuccessExitStatus=0 1
|
||||
Nice=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
@@ -7,12 +7,9 @@
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/bin/git</string>
|
||||
<string>-C</string>
|
||||
<string>/opt/homelab-context</string>
|
||||
<string>pull</string>
|
||||
<string>--ff-only</string>
|
||||
<string>--quiet</string>
|
||||
<string>/usr/bin/env</string>
|
||||
<string>bash</string>
|
||||
<string>/opt/homelab-context/tools/post-pull.sh</string>
|
||||
</array>
|
||||
|
||||
<key>StartInterval</key>
|
||||
@@ -29,4 +26,4 @@
|
||||
<key>Nice</key>
|
||||
<integer>10</integer>
|
||||
</dict>
|
||||
</plist>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user