monasca-agent/packaging/monasca-agent-deb/postrm
Craig Bryant b0cc0ccb14 Change the default agent user to mon-agent
Changed some places to templates to make it possible to change agent
user using monasca_setup. There is one place that it is still
hard coded

The deb creation now uses a hardcoded mon-agent user instead of
monasca-agent

Change-Id: I8f2ee8903289d74c0397ccf911701c89e7a1b691
2015-05-06 11:41:28 -06:00

10 lines
117 B
Bash

#! /bin/bash
set -e
if [ "$1" = purge ]; then
update-rc.d monasca-agent remove
deluser mon-agent
fi
exit 0