summarylogtreecommitdiffstats
path: root/claude-code-relay.install
blob: 695e9fb39afa15487ab92fcb10be34ccee50ea1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
    systemd-sysusers cc-relay-server.conf
    systemd-tmpfiles --create cc-relay-server.conf

    # Set config file permissions so cc-relay user can read it
    chown root:cc-relay /etc/cc-relay-server/config.toml
    chmod 640 /etc/cc-relay-server/config.toml

    echo "==> Claude Code Relay has been installed."
    echo ""
    echo "    1. Edit /etc/cc-relay-server/config.toml with your credentials"
    echo "    2. Start the service: systemctl start cc-relay-server"
    echo "    3. Enable on boot: systemctl enable cc-relay-server"
    echo ""
    echo "    Logs: journalctl -u cc-relay-server -f"
}

post_upgrade() {
    systemd-sysusers cc-relay-server.conf
    systemd-tmpfiles --create cc-relay-server.conf
}