Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Deprovisioning script
#!/bin/sh -x
# Constant declaration
GREEN="\e[32m===> "
RESET="\e[0m"
# Deprovision and generalize the image
echo -e "\n${GREEN}Came back from reboot...${RESET}"
echo -e "\n${GREEN}Deprovisiong the system...${RESET}\n"
/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.