$APT_TOOL update && $APT_TOOL -y install $(cat head_file_apt.list)
fi
+### fix NFS start bug in systemd
+systemctl add-wants nfs-mountd.service rpcbind.service
+
### Fix ejabberd/apparmor bug - commented out because it's not working
#FixAppArmorEJabberD
$APT_TOOL -y install $(cat tar_file_apt.list) 2>&1 | tee -a "$INSTALL_LOG"
fi
+### Fix bug in NFS that caused failure to start at boot time
+if cat tar_file_apt.list | grep -q nfs
+then
+ systemctl add-wants nfs-mountd.service rpcbind.service
+fi
+
### Fix ejabberd/apparmor bug - commented out because it didn't work
#FixAppArmorEJabberD
fi
chown -R opensrf:opensrf /storage/reports-output
$APT_TOOL install nfs-kernel-server
+ systemctl add-wants nfs-mountd.service rpcbind.service
fi
### make sure the permissions are correct.