http://Bj83.de

Shell Script zum Samba (SMB) share mounten

echo "";
echo "*** Workspace from debdev ***"
echo "";
if [ ! -d "/workspace" ]; then
  echo "/workspace dont exist, i create it..."
  mkdir /workspace
  echo "...set rights to 0777..."
  chmod 0777 /workspace
  echo "...mount debdev workspace into it."
  sudo mount -t cifs //debdev/workspace /workspace -o user=nobody,password=abc
else
  echo "Workspace Exist..."
  echo "...mount debdev workspace into it."
  sudo mount -t cifs //debdev/workspace /workspace -o user=nobody,password=abc
fi

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: