mirror of
https://github.com/YunoHost-Apps/samba_ynh.git
synced 2024-09-03 20:16:27 +02:00
fix: the config from being overwritten if a new directory gets added
This commit is contained in:
parent
0ab30e3ac0
commit
9553a6b7cd
1 changed files with 4 additions and 3 deletions
|
@ -61,8 +61,8 @@ set__directories() {
|
|||
chown -R root:root "$data_dir/$directory"
|
||||
setfacl -R -m g:samba.$directory:rwx,d:g:samba.$directory:rwx $data_dir/$directory
|
||||
|
||||
|
||||
# Add the configuration in /etc/samba/smb.conf if needed
|
||||
# Add the configuration in /etc/samba/smb.conf.d/ if its missing
|
||||
if [ ! -f "$install_dir/smb.conf.d/$directory.conf" ]; then
|
||||
cat > $install_dir/smb.conf.d/$directory.conf <<END
|
||||
[$directory]
|
||||
comment = $directory
|
||||
|
@ -78,6 +78,7 @@ set__directories() {
|
|||
recycle:keeptree = yes
|
||||
recycle:versions = yes
|
||||
END
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue