2017-06-30 18:25:20 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-08-31 11:21:33 +02:00
|
|
|
# Remove git metadata
|
|
|
|
find / -name '.git*' -exec rm -rf {} \;
|
|
|
|
|
|
|
|
# Remove SSH settings
|
|
|
|
rm -rf /root/.ssh/
|
|
|
|
|
2017-06-30 18:25:20 +02:00
|
|
|
# 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
|