I am working on a script to add and remove samba shares in linux. This script requires samba and dialog installed.
My complete code is at https://paste.ubuntu.com/p/Q45fj