forked from LibreSchool/server-config
Fixing a regression for the shared folder: error when trying to create a file in a subfolder created just before on the shared root.
This commit is contained in:
parent
00fdd10821
commit
00f3f60d52
@ -86,12 +86,12 @@
|
|||||||
register: chk_shared
|
register: chk_shared
|
||||||
|
|
||||||
- name: Copying default templates for shared template type
|
- name: Copying default templates for shared template type
|
||||||
shell: cp -r /etc/e-smith/templates/etc/samba/smb.conf/ibay-default /etc/e-smith/templates-custom/etc/samba/smb.conf/ibay-shared
|
shell: cp -r /etc/e-smith/templates/etc/samba/smb.conf/ibay-default /etc/e-smith/templates/etc/samba/smb.conf/ibay-shared
|
||||||
when: force_ibay_shared|bool or chk_shared|failed
|
when: force_ibay_shared|bool or chk_shared|failed
|
||||||
|
|
||||||
- name: Configuring ibay-shared template structure (directory mask)
|
- name: Configuring ibay-shared template structure (directory mask)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/e-smith/templates-custom/etc/samba/smb.conf/ibay-shared/20profile_default
|
dest: /etc/e-smith/templates/etc/samba/smb.conf/ibay-shared/20profile_default
|
||||||
line: 'directory mask = 0775'
|
line: 'directory mask = 0775'
|
||||||
insertafter: '^create mask'
|
insertafter: '^create mask'
|
||||||
state: present
|
state: present
|
||||||
@ -99,7 +99,7 @@
|
|||||||
|
|
||||||
- name: Configuring force create mode
|
- name: Configuring force create mode
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/e-smith/templates-custom/etc/samba/smb.conf/ibay-shared/20profile_default
|
dest: /etc/e-smith/templates/etc/samba/smb.conf/ibay-shared/20profile_default
|
||||||
line: 'force create mode = 0664'
|
line: 'force create mode = 0664'
|
||||||
insertafter: '^directory mask'
|
insertafter: '^directory mask'
|
||||||
state: present
|
state: present
|
||||||
@ -107,7 +107,7 @@
|
|||||||
|
|
||||||
- name: Configuring force directory mode
|
- name: Configuring force directory mode
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/e-smith/templates-custom/etc/samba/smb.conf/ibay-shared/20profile_default
|
dest: /etc/e-smith/templates/etc/samba/smb.conf/ibay-shared/20profile_default
|
||||||
line: 'force directory mode = 0775'
|
line: 'force directory mode = 0775'
|
||||||
insertafter: '^force create mode'
|
insertafter: '^force create mode'
|
||||||
state: present
|
state: present
|
||||||
|
Loading…
x
Reference in New Issue
Block a user