mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-04 20:37:52 +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:
parent
dabf22282c
commit
0d2c08f8e8
@ -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 {} \;
|
||||
|
@ -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 {} \;
|
Loading…
Reference in New Issue
Block a user