summarylogtreecommitdiffstats
path: root/crate.install
blob: 189d0152c2a518f10de1b4674856c791d4fd6e17 (plain)
1
2
3
4
5
6
7
8
9
10
post_install() {
    useradd -r -g daemon -d /usr/share/crate -s /bin/false crate
    chown -R crate:daemon /usr/share/crate
    chown -R crate:daemon /var/lib/crate
    chown -R crate:daemon /var/log/crate
}

post_remove() {
    userdel crate
}