summarylogtreecommitdiffstats
path: root/ste.install
blob: ea7a68820c9f3d680f105241fd42df11fb672ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
    /usr/bin/getent group ste >/dev/null 2>&1 ||  /usr/bin/groupadd -g 216 ste &>/dev/null
    # SUID mitigation
    chown root:ste /usr/bin/ste
    chmod 4750 /usr/bin/ste
    echo "To run ste without sudo, add your user to the ste group:"
    echo "$ sudo gpasswd --add <username> ste"
}

post_upgrade() {
    post_install
}

post_remove() {
    if /usr/bin/getent group ste >/dev/null 2>&1; then
        /usr/bin/groupdel ste
    fi
}