mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Move import statement
This commit is contained in:
parent
1371f639ac
commit
ef1ab7692a
1 changed files with 1 additions and 1 deletions
|
@ -13,9 +13,9 @@ def main():
|
|||
Exception
|
||||
"""
|
||||
# Get the commandline arguments
|
||||
import os
|
||||
args = get_args()
|
||||
# Require root privileges, except when doing a dry-run where they aren't needed
|
||||
import os
|
||||
if os.geteuid() != 0 and not args.dry_run:
|
||||
raise Exception('This program requires root privileges.')
|
||||
# Setup logging
|
||||
|
|
Loading…
Add table
Reference in a new issue