File: python-swift.postinst

package info (click to toggle)
swift 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 6,948 kB
  • sloc: python: 91,496; sh: 618; makefile: 48
file content (15 lines) | stat: -rw-r--r-- 259 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

#DEBHELPER#

if ! getent passwd swift > /dev/null ; then
  adduser --system --quiet --disabled-login --disabled-password --no-create-home --group --shell /bin/false swift
fi

usermod -G adm swift

chown swift:swift /var/cache/swift

exit 0