summarylogtreecommitdiffstats
path: root/nextcloud-spreed-signaling.install
blob: 12866fde6ba69289b72fabd9473bce0b4f5061e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
    groupadd --system signaling
    useradd --system \
        --gid signaling \
        --shell /usr/bin/nologin \
        --comment "Standalone signaling server for Nextcloud Talk." \
        signaling

    chown signaling: /etc/signaling/server.conf
}

post_remove() {
    systemctl stop signaling.service 2>/dev/null
    systemctl disable signaling.service 2>/dev/null

    userdel signaling
}