summarylogtreecommitdiffstats
path: root/jqassistant.install
blob: 0a00435a3391467a4a60683f9504b3fcc7b249cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
    if ! getent group jqassistant >/dev/null; then
        groupadd --system jqassistant
    fi
    if ! getent passwd jqassistant >/dev/null; then
        useradd --system -g jqassistant -d /var/lib/neo4j -s /bin/false jqassistant
    fi
    
    chown -R jqassistant:users /opt/jqassistant/jqassistant
}

post_upgrade() {
    if ! getent group jqassistant >/dev/null; then
        groupadd --system jqassistant
    fi
    if ! getent passwd jqassistant >/dev/null; then
        useradd --system -g jqassistant -d /var/lib/neo4j -s /bin/false jqassistant
    fi
    
    chown -R jqassistant:users /opt/jqassistant/jqassistant
}