summarylogtreecommitdiffstats
path: root/.INSTALL
blob: 91b329d8c053558bc2bf033ddbc1d1ac1eebf056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
startdir=

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

    # Add swish user to the rserve group. If this is not done, access to the 
    # socket would be forbidden.
    gpasswd -a swish rserve >/dev/null

    # Copy the install script.
    install -D -m744 ${startdir}/install_web_iface_deps.pl /home/swish/install_web_iface_deps.pl
    chown swish:swish /home/swish/install_web_iface_deps.pl

    echo ""
    echo ""
    echo "You can start and enable \
swish-cplint.service to run the server."
    echo ""
    echo ""
}

# Trivial remove.
pre_remove() {
    echo ""
    echo ""
    echo "UNIMPLEMENTED"
    echo ""
    rm -rf /home/swish/lib
    echo ""
    echo ""
}