summarylogtreecommitdiffstats
path: root/wg-proxy.install
blob: d949da0e35d47c6d65078a0a69e38086d8d6fb3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
    printf ':: Setting capabilities on /usr/bin/wg-proxy... '
    if setcap 'cap_net_admin,cap_sys_admin+ep' /usr/bin/wg-proxy; then
        echo -e '\e[32mOK\e[0m'
    else
        echo -e '\e[31mFAILED\e[0m'
    fi
}

post_upgrade() {
    post_install
}