14 lines
516 B
Bash
14 lines
516 B
Bash
#!/bin/bash
|
|
|
|
# One hop between the expansion and the home path it carries. The token in the
|
|
# heredoc has no slash and the value never resolves to a literal path, so a scan
|
|
# that rescues unresolved values would exempt a unit baking the user's home into
|
|
# /etc/systemd/system.
|
|
helper="$HOME/.local/share/omarchy/bin/omarchy-agent"
|
|
|
|
# omarchy:heredoc-expands paths=none -- helper is just the agent command name
|
|
cat <<EOF | sudo tee /etc/systemd/system/omarchy-agent.service >/dev/null
|
|
[Service]
|
|
ExecStart=$helper
|
|
EOF
|