Created
June 20, 2016 19:24
-
-
Save albertstartup/b5b2814e0db208ecf0004db64004cc12 to your computer and use it in GitHub Desktop.
user-data script to set proper /mnt/tmp permission after /mnt is delete from instance termination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -d /mnt ] && [ ! -e /mnt/tmp ] ; then | |
sudo mkdir /mnt/tmp | |
sudo chmod 777 /mnt/tmp | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment