diff options
Diffstat (limited to 'src/virtBootstrap/virt_bootstrap.py')
-rwxr-xr-x | src/virtBootstrap/virt_bootstrap.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/virtBootstrap/virt_bootstrap.py b/src/virtBootstrap/virt_bootstrap.py index bef5e88..90379cc 100755 --- a/src/virtBootstrap/virt_bootstrap.py +++ b/src/virtBootstrap/virt_bootstrap.py @@ -96,6 +96,9 @@ def bootstrap(args): elif not os.path.isdir(args.dest): # Show error if not directory error("Destination path '%s' is not directory.", args.dest) sys.exit(1) + elif not os.access(args.dest, os.W_OK): # Check write permissions + error("No write permissions on destination path '%s'", args.dest) + sys.exit(1) source.unpack(args.dest) |