1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/samba_ynh.git synced 2024-09-03 20:16:27 +02:00

fix: error with space in search key

This commit is contained in:
Hemi03 2024-03-29 05:45:36 +01:00
parent 36b943fdb8
commit 0ab30e3ac0

View file

@ -103,7 +103,7 @@ set__readonly_dir() {
if [[ -n "$readonly_dir" && $directory =~ $(echo "^($(echo $readonly_dir | sed 's/,\| /|/g'))$") ]]; then
value="yes"
fi
ynh_write_var_in_file --file=$install_dir/smb.conf.d/$directory.conf --key="read only" --value="$value"
ynh_write_var_in_file --file=$install_dir/smb.conf.d/$directory.conf --key=read[[:space:]]only --value="$value"
done
ynh_app_setting_set $app readonly_dir "$readonly_dir"
write_smb_conf