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:
parent
36b943fdb8
commit
0ab30e3ac0
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ set__readonly_dir() {
|
||||||
if [[ -n "$readonly_dir" && $directory =~ $(echo "^($(echo $readonly_dir | sed 's/,\| /|/g'))$") ]]; then
|
if [[ -n "$readonly_dir" && $directory =~ $(echo "^($(echo $readonly_dir | sed 's/,\| /|/g'))$") ]]; then
|
||||||
value="yes"
|
value="yes"
|
||||||
fi
|
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
|
done
|
||||||
ynh_app_setting_set $app readonly_dir "$readonly_dir"
|
ynh_app_setting_set $app readonly_dir "$readonly_dir"
|
||||||
write_smb_conf
|
write_smb_conf
|
||||||
|
|
Loading…
Reference in a new issue