This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/debian/greenlight.postinst

22 lines
514 B
Plaintext
Raw Permalink Normal View History

2021-02-21 02:16:15 -05:00
#!/bin/sh
set -e
# This script was adapted from
# https://salsa.debian.org/utopia-team/network-manager/-/blob/debian/master/debian/network-manager.postinst
# Make sure this script has the following permissions: 0755
case "$1" in
configure)
adduser --system --quiet --home /opt/greenlight --group --shell /bin/bash greenlight
chown -R greenlight:greenlight /opt/greenlight
;;
abort-upgrade|abort-deconfigure|abort-remove)
;;
*)
echo "$0 called with unknown argument \`$1'" 1>&2
exit 1
;;
esac