File: network-manager-openvpn.postinst

package info (click to toggle)
network-manager-openvpn 1.2.8-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,528 kB
  • ctags: 1,107
  • sloc: ansic: 11,020; sh: 4,196; makefile: 305
file content (16 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if [ "$1" = configure ]; then
    # create system user required to run the openvpn daemon unprivileged
    adduser --quiet --system \
            --home /var/lib/openvpn/chroot \
            --gecos "NetworkManager OpenVPN" \
            --group nm-openvpn

    # create directory used for running the openvpn daemon in a chroot
    install -o nm-openvpn -g nm-openvpn -d /var/lib/openvpn/chroot/tmp
fi

#DEBHELPER#