summarylogtreecommitdiffstats
path: root/pyvtlock.install
blob: 319e209c0428ca0de43057fe07436c96fc4defcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
post_install() {
    echo -n 'Setting up capabilities for capwrap'
    setcap 'cap_sys_tty_config=ep cap_setgid=ep' '/usr/lib/pyvtlock/capwrap'
    if [[ $? -eq 0 ]]; then
        echo ' [DONE]'
    else
        echo ' [FAIL]'
    fi
}

post_upgrade() {
    post_install
}