#!/bin/bash
smbshare="//windowsserver/smbshare/attachements"
mountpoint="/mnt/b1_attachments"
username="username"
password="password"
domain=""

mkdir -p "$mountpoint"; \
mountpoint -q "$mountpoint" || mount -t cifs "$smbshare" "$mountpoint" \
  -o username="$username",password="$password",domain="$domain",vers=3.0,iocharset=utf8; \
echo "✅ Ordner ${mountpoint%/}/ erstellt."
