Spotter-VM/99-cleanup.sh
Disassembler 2a93282a0e Install postgres-contrib (required by pandora)
Do not remove gnupg (required by apt-add-key)
Cleanup git files in 99-cleanup.sh
2017-08-31 11:21:33 +02:00

15 lines
268 B
Bash

#!/bin/bash
# Remove git metadata
find / -name '.git*' -exec rm -rf {} \;
# Remove SSH settings
rm -rf /root/.ssh/
# 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