blob: e93c98cb569f894be94707f8c1449e050b093797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
## arg 1: the new package version
post_install() {
if id surfsharkwg ! &>/dev/null; then
useradd -Urs /usr/bin/nologin surfsharkwg
fi
chown root:surfsharkwg /opt/surfshark-wireguard/
chown root:surfsharkwg /opt/surfshark-wireguard/gen_wg_config.sh
chown root:surfsharkwg /opt/surfshark-wireguard/config.json
echo "Any user wanting start/stop surfshark wireguard must be in surfsharkwg group"
echo "You must logout and back in before editing /opt/surshark-wireguard/config.json"
echo "Once your credentials are in place run surfshark-wireguard"
}
|