Skip to content

Instantly share code, notes, and snippets.

@erolj
Created April 23, 2020 04:27
Show Gist options
  • Save erolj/c61b2b5455653a406589bb1728eee3d2 to your computer and use it in GitHub Desktop.
Save erolj/c61b2b5455653a406589bb1728eee3d2 to your computer and use it in GitHub Desktop.
Personal unix server management simple tool.
#!/bin/bash
FILE="cortana.sh"
printf "\n"
echo "-------------------------------------"
echo " CORTANA v0.1"
echo " https://erol.my.id/cortana.sh"
echo "-------------------------------------"
printf "\n"
echo "Hello, what do you want to do today?"
select yn in "THOR Maintenance" "Setup awal GCP VM" "Nevermind."; do
case $yn in
"THOR Maintenance" )
sudo wget -q https://erol.my.id/thor.sh -O thor.sh;
sudo chmod +x thor.sh;
./thor.sh;
rm -fR $FILE;
break;;
"Setup awal GCP VM" )
sudo wget -q https://erol.my.id/setup_gcp.sh -O setup_gcp.sh;
sudo chmod +x setup_gcp.sh;
./setup_gcp.sh;
rm -fR $FILE;
break;;
"Nevermind." )
echo "Bye!";
rm -fR $FILE;
exit;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment