summarylogtreecommitdiffstats
path: root/datomic.install
blob: 6cabe4605eacb07ae26f0833bc750af5ac7a5447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pre_install() {
    useradd -r -d /var/lib/datomic datomic
}

post_install() {
    chown -R datomic /var/lib/datomic
    chown -R datomic /var/log/datomic
}

pre_remove() {
    systemctl stop datomic
    systemctl disable datomic
}

post_remove() {
    userdel datomic
}