Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #696 from gamechanger/as-log-etc-exports
Browse files Browse the repository at this point in the history
log the expected `/etc/exports` config
  • Loading branch information
asuraiya authored Aug 21, 2019
2 parents d2853ff + 98648c3 commit 207afee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dusty/systems/nfs/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ def _get_exports_for_repos(repos):

def _write_exports_config(exports_set):
exports_config = ''.join(exports_set)
log_to_client("Your /etc/exports file is missing a configuration that dusty expects, so we will try and update the file to look like this:")
log_to_client("------------")
log_to_client(exports_config)
log_to_client("------------")
log_to_client("If the write fails, you might try manually updating your /etc/exports file to include the above lines.")
current_config = _read_exports_contents()
current_config = config_file.remove_current_dusty_config(current_config)
current_config += config_file.create_config_section(exports_config)
Expand Down

0 comments on commit 207afee

Please sign in to comment.