Skip to content

Commit

Permalink
civic-1817 adding linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Sghaier committed Apr 4, 2016
1 parent 0990ca8 commit 08e56d4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docker-machine-nfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,17 @@ configureNFS()
done

#TODO Make this check smarter, not everything else will be ubuntu
if [ $(uname) == "Darwin"]; then
if [ $(uname) == "Darwin" ]; then
sudo nfsd restart ; sleep 2 && sudo nfsd checkexports
else
sudo service nfs-kernel-server restart
elif [ $(uname) == "Linux" ]; then
if [ $(cat /etc/*release|grep -iE "(debian|ubuntu)"|wc -l) -gt 0 ]; then
sudo service nfs-kernel-server restart
elif [ $(cat /etc/*release|grep -i arch|wc -l) -gt 0 ]; then
sudo exportfs -rav
else
echo "This OS isn't supported yet"
exit 1
fi
fi
echoSuccess "\t\t\t\t\t\tOK"
}
Expand Down

0 comments on commit 08e56d4

Please sign in to comment.