From 3e2df13b82297a94fd9f29671bd2178c318ceca8 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Thu, 12 Nov 2020 16:00:33 +0900 Subject: [PATCH] Modify `mount` command parameters. --- cookbooks/docker/setup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/docker/setup.rb b/cookbooks/docker/setup.rb index f61bd14..93fbd24 100644 --- a/cookbooks/docker/setup.rb +++ b/cookbooks/docker/setup.rb @@ -13,7 +13,7 @@ file '/etc/fstab' do action :edit block do |content| - content << "//192.168.10.200/Shared/backup /mnt/backup cifs username=admin,password=Holiday88,uid=root,gid=root,file_mode=0777,dir_mode=0777,defaults 0 0\n" + content << "//192.168.10.200/Shared/AppData /mnt/backup cifs username=admin,password=Holiday88,uid=root,gid=root,file_mode=0777,dir_mode=0777,vers=3.0,_netdev 0 0\n" end not_if 'grep backup /etc/fstab' @@ -23,7 +23,7 @@ file '/etc/fstab' do action :edit block do |content| - content << "//192.168.10.200/Shared/PXEBoot/www/ubuntu/apt-mirror /var/spool/apt-mirror cifs username=admin,password=Holiday88,uid=root,gid=root,file_mode=0777,dir_mode=0777,defaults 0 0\n" + content << "//192.168.10.200/Shared/PXEBoot/www/ubuntu/apt-mirror /var/spool/apt-mirror cifs username=admin,password=Holiday88,uid=root,gid=root,file_mode=0777,dir_mode=0777,vers=3.0,_netdev 0 0\n" end not_if 'grep apt-mirror /etc/fstab'