From 23eefd406c67078a8fd0522cd388fb9b0e4778d4 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 30 Jun 2017 18:25:20 +0200 Subject: [PATCH] Add cleanup script Add numbering order to shell scripts --- debian.txt => 00-debian.txt | 0 basic.sh => 01-basic.sh | 0 sahana.sh => 02-sahana.sh | 0 seeddms.sh => 10-seeddms.sh | 0 99-cleanup.sh | 11 +++++++++++ 5 files changed, 11 insertions(+) rename debian.txt => 00-debian.txt (100%) rename basic.sh => 01-basic.sh (100%) rename sahana.sh => 02-sahana.sh (100%) rename seeddms.sh => 10-seeddms.sh (100%) create mode 100644 99-cleanup.sh diff --git a/debian.txt b/00-debian.txt similarity index 100% rename from debian.txt rename to 00-debian.txt diff --git a/basic.sh b/01-basic.sh similarity index 100% rename from basic.sh rename to 01-basic.sh diff --git a/sahana.sh b/02-sahana.sh similarity index 100% rename from sahana.sh rename to 02-sahana.sh diff --git a/seeddms.sh b/10-seeddms.sh similarity index 100% rename from seeddms.sh rename to 10-seeddms.sh diff --git a/99-cleanup.sh b/99-cleanup.sh new file mode 100644 index 0000000..5a29b6c --- /dev/null +++ b/99-cleanup.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Remove packages not necessary for release +apt-get -y purge git openssh-server +apt-get -y --purge autoremove + +# Clean package cache +apt-get -y clean + +# Remove SSH settings +rm -rf /root/.ssh/