Disassembler
2a93282a0e
Do not remove gnupg (required by apt-add-key) Cleanup git files in 99-cleanup.sh
15 lines
268 B
Bash
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
|