Skip to content

Instantly share code, notes, and snippets.

@albertstartup
Created June 20, 2016 19:24
Show Gist options
  • Save albertstartup/b5b2814e0db208ecf0004db64004cc12 to your computer and use it in GitHub Desktop.
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
#!/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