Modify mount point setting.

This commit is contained in:
Kazuhiro MUSASHI 2020-11-21 18:05:44 +09:00 committed by Gitea
parent a89a554afd
commit 2073c93d0c
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
package 'cifs-utils' package 'cifs-utils'
%w(shared tmp img).each do |d| %w(shared tmp img backup).each do |d|
directory "/mnt/#{d}/" do directory "/mnt/#{d}/" do
owner 'root' owner 'root'
group 'root' group 'root'
@ -32,7 +32,7 @@ file '/etc/fstab' do
content << "//192.168.10.200/homes/kazu634/Drive/Moments /mnt/img cifs username=admin,password=Holiday88,uid=root,gid=root,file_mode=0777,dir_mode=0777,vers=3.0,_netdev 0 0\n" content << "//192.168.10.200/homes/kazu634/Drive/Moments /mnt/img cifs username=admin,password=Holiday88,uid=root,gid=root,file_mode=0777,dir_mode=0777,vers=3.0,_netdev 0 0\n"
end end
not_if 'grep img /etc/fstab' not_if 'grep Moments /etc/fstab'
end end
file '/etc/fstab' do file '/etc/fstab' do