def configure_nfs_server():
repos_for_export = get_all_repos(active_only=True, include_specs_repo=False)<EOL>current_exports = _get_current_exports()<EOL>needed_exports = _get_exports_for_repos(repos_for_export)<EOL>_ensure_managed_repos_dir_exists()<EOL>if not needed_exports.difference(current_exports):<EOL><INDENT>if not _server_is_running():<EOL><INDENT>_restart_server()<EOL><DEDENT>return<EOL><DEDENT>_write_exports_config(needed_exports)<EOL>_restart_server()<EOL>
This function is used with `dusty up`.  It will check all active repos to see if
they are exported.  If any are missing, it will replace current dusty exports with
exports that are needed for currently active repos, and restart
the nfs server