picloud deploy
This commit is contained in:
20
utils/cloud_dispatcher/debian-service/DEBIAN/postrm
Normal file
20
utils/cloud_dispatcher/debian-service/DEBIAN/postrm
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
action=$1
|
||||
|
||||
#if [ "$action" = "purge" ] ; then
|
||||
#
|
||||
#fi
|
||||
#dpkg-maintscript-helper rm_conffile /etc/network/if-up.d/openssh-server 1:7.9p1-1~ -- "$@"
|
||||
|
||||
if [ "$action" = "remove" ]; then
|
||||
systemctl disable picloud >/dev/null || true
|
||||
rm /etc/systemd/system/picloud.service
|
||||
systemctl --system daemon-reload >/dev/null || true
|
||||
if which deluser >/dev/null 2>&1; then
|
||||
deluser --quiet shs > /dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user