add cleanup to remote-update

This commit is contained in:
nachoparker 2017-04-27 22:47:58 +02:00
parent 2877a2826d
commit 5977684cc0

View File

@ -17,9 +17,18 @@
install() { ncp-update; }
cleanup() { :; }
configure() { :; }
cleanup()
{
apt-get autoremove -y
apt-get clean
rm -rf /var/lib/apt/lists/*
rm -f /home/pi/.bash_history
systemctl disable ssh
}
# License
#
# This script is free software; you can redistribute it and/or modify it