summarylogtreecommitdiffstats
path: root/.install
blob: 29d276a75b75a1b8df12f6cb6ded73a770303e82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
    # Add swish user and group.
    getent group swish &>/dev/null || groupadd -r swish >/dev/null
    getent passwd swish &>/dev/null || useradd -m -d /home/swish \
-r -g swish swish >/dev/null

    chown -R swish:swish /usr/share/swish

    printf "\n\n%s\n\n" "You can start and enable \
swish.service to run the server."
}

post_remove()
{
    printf "\n\n%s\n\n" "You can remove swish user and group."
}