add missing param

This commit is contained in:
Matthew R. Kasun 2022-08-29 09:01:56 -04:00
parent d1f969be3b
commit d9b5a1640a

View file

@ -108,7 +108,7 @@ func FreebsdDaemon(command string) {
// CleanupFreebsd - removes config files and netclient binary
func CleanupFreebsd() {
ncutils.RunCmd("service netclient stop")
ncutils.RunCmd("service netclient stop", false)
RemoveFreebsdDaemon()
if err := os.RemoveAll(ncutils.GetNetclientPath()); err != nil {
logger.Log(1, "Removing netclient configs: ", err.Error())