7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-28 17:33:29 +00:00

Get rid of cloud cleaning script

It makes more sense to incorporate this script into the deployment
script.
This commit is contained in:
Régis Behmo 2019-03-13 18:31:52 +01:00
parent dabf22282c
commit 0d2c08f8e8
2 changed files with 6 additions and 9 deletions

View File

@ -71,3 +71,9 @@ Restart=on-failure
[Install]
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/tutor-webui.service
sudo systemctl enable tutor-webui
echo "=============== Clean authorized keys"
sudo find / -name "authorized_keys" -exec rm -f {} \;
echo "=============== Clean history"
sudo find /root/.*history /home/*/.*history -exec rm -f {} \;

View File

@ -1,9 +0,0 @@
#! /bin/bash
# Clean an AWS instance so that it becomes ready for creating an AMI
# See https://aws.amazon.com/articles/how-to-share-and-use-public-amis-in-a-secure-manner/
# Run with: curl -sSL https://raw.githubusercontent.com/regisb/tutor/master/cloud/clean.sh | bash -e
echo "=============== Clean authorized keys"
sudo find / -name "authorized_keys" -exec rm -f {} \;
echo "=============== Clean history"
sudo find /root/.*history /home/*/.*history -exec rm -f {} \;