Skip to content

Instantly share code, notes, and snippets.

@Ajnasz
Created February 9, 2015 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ajnasz/d8194bca9b0a4ab580ed to your computer and use it in GitHub Desktop.
Save Ajnasz/d8194bca9b0a4ab580ed to your computer and use it in GitHub Desktop.
Remount nfs storage
#!/bin/sh
# Remount nfs storage
ls /storage > /dev/null
if [ "$?" -ne "0" ]; then
echo "Error listing /storage" 1>&2
umount /storage
mount /storage
echo "Storage remounted" 1>&2
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment