diff --git a/samba.sh b/samba.sh index 5b23e57..8af607c 100644 --- a/samba.sh +++ b/samba.sh @@ -90,7 +90,7 @@ else # Set custom display name if provided if [ -n "$NAME" ] && [[ "${NAME,,}" != "data" ]]; then - sed "s/\[Data\]/\[$NAME\]/" "$config" + sed -i "s/\[Data\]/\[$NAME\]/" "$config" fi # Update force user and force group in smb.conf