File: etcd-server.postinst

package info (click to toggle)
etcd 3.3.25%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,376 kB
  • sloc: sh: 2,402; makefile: 730
file content (20 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

case $1 in
    configure)
        if ! getent passwd etcd > /dev/null 2>&1 ; then
            adduser --system --group --disabled-login --disabled-password --home /var/lib/etcd/ etcd
        fi
        chmod 700 /var/lib/etcd/
    ;;
    abort-upgrade|abort-remove|abort-deconfigure)
    ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#