From 39edef5e7862f6da608672f1b3297e81afc412fb Mon Sep 17 00:00:00 2001 From: Olivier Date: Sun, 10 Mar 2024 15:57:28 +0100 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"/"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- automount-cifs.automount | 7 +++++++ automount-cifs.mount | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 automount-cifs.automount create mode 100644 automount-cifs.mount diff --git a/automount-cifs.automount b/automount-cifs.automount new file mode 100644 index 0000000..140da19 --- /dev/null +++ b/automount-cifs.automount @@ -0,0 +1,7 @@ +# 2024-03-10 + +[Automount] +Where=/opt/samba + +[Install] +WantedBy=multi-user.target diff --git a/automount-cifs.mount b/automount-cifs.mount new file mode 100644 index 0000000..e287a14 --- /dev/null +++ b/automount-cifs.mount @@ -0,0 +1,19 @@ +# 2024-03-10 + +[Unit] +Description=Mount: Samba (docker) +DefaultDependencies=yes +Conflicts=umount.target +After=network-online.target +After=systemd-networkd-wait-online.service + +[Mount] +What=//192.168.1.2/sqamba +Where=/opt/samba +Type=cifs +Options=defaults,_netdev,guest,exec,dir_mode=0755,file_mode=0644,uid=1000,gid=1000,vers=3.1.1 + +[Install] +WantedBy=systemd-networkd-wait-online.service +WantedBy=network-online.target +WantedBy=multi-user.target