cloudstack/debian/cloud-agent-scripts.postinst

14 lines
331 B
Bash

#!/bin/sh -e
case "$1" in
configure)
if ! id cloud > /dev/null 2>&1 ; then
adduser --system --home /var/lib/cloud/management --no-create-home \
--group --disabled-password --shell /bin/sh cloud
# update me in cloud-usage.postinst as well
fi
;;
esac
#DEBHELPER#