22 lines
514 B
Bash
Executable File
22 lines
514 B
Bash
Executable File
#!/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
|
|
|