Skip to content
Snippets Groups Projects
Unverified Commit f50e3e4e authored by osetrovich's avatar osetrovich Committed by GitHub
Browse files

Updated files and folders removal.

parent 81ffdb23
No related branches found
No related tags found
Loading
...@@ -3,5 +3,13 @@ if [ "$1" == "purge" ] && [ -e /usr/share/debconf/confmodule ] ; then ...@@ -3,5 +3,13 @@ if [ "$1" == "purge" ] && [ -e /usr/share/debconf/confmodule ] ; then
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
db_purge db_purge
fi fi
usermod -G $(groups $(id -nu) | sed 's/kelvin//') GROUP_RM="kelvin"
systemctl stop kelvin-node
systemctl disable kelvin-node
for username in (cat /etc/passwd | grep "/home" | cut -d ':' -f1); do
gpasswd -d $username $GROUP_RM
done
rm -r /opt/kelvin-node
groupdel kelvin groupdel kelvin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment