Commit 6f09e13
Fix uninstall.sh to use root's config dir when unregistering
When running `sudo ggo agent unregister`, the command looks for config
in the calling user's home directory, not root's. This causes it to
report "Agent is not registered" even when the agent IS registered
under root.
Fix by explicitly passing --config-dir /root/.gpugo/config when
needs_sudo is true, ensuring the unregister command finds the actual
agent configuration.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent e308276 commit 6f09e13
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
307 | | - | |
| 309 | + | |
308 | 310 | | |
309 | 311 | | |
310 | 312 | | |
| |||
0 commit comments