diff --git a/modserver/globals.sh b/modserver/globals.sh index 9c1f7a4..a7f0ee1 100644 --- a/modserver/globals.sh +++ b/modserver/globals.sh @@ -43,18 +43,17 @@ mount_dayz_network_drive() { ;; *) msg "Detected Linux, mounting via cifs" - sudo mount -t cifs \ + # shellcheck disable=2046 + sudo mount -t cifs //truenas.local.wvr.sh/dayz /mnt/dayz \ -o rw \ -o credentials=/root/sambacreds.txt \ -o iocharset=utf8 \ -o vers=3.0 \ - //truenas.local.wvr.sh/dayz /mnt/dayz -# -o uid=1000 \ -# -o gid=1000 \ + -o uid=$(id -u) \ + -o gid=$(id -g) esac unset ver - # asdf else errmsg 'could not find /proc/version' exit 1