do_node $smbsrv "testparm -s >$smbsmall"
do_node $smbsrv "testparm -s $smbsmall >$smbconf"
- do_node $smbsrv "echo $smbpasswd | tee - | smbpasswd -a $smbuser -s"
+ do_node $smbsrv "echo $smbpasswd | tee - | smbpasswd -a $smbuser -s" ||
+ do_node $smbsrv "printf '$smbpasswd\n$smbpasswd\n' |\
+ tee - | smbpasswd -a $smbuser -s"
}
restore_config_smb() {
local smbclients=${3}
echo -e "\nUnmounting CIFS clients..."
- do_nodes $smbclients "umount -f $smbclimntpt" || return 1
+ zconf_umount_clients $smbclients $smbclimntpt -f || return 1
do_node $smbsrv "service smb stop"
}