This commit is contained in:
qtwrk
2020-01-14 13:16:27 +01:00
parent f6e4268814
commit 44a34956ad

View File

@@ -13,6 +13,9 @@ from packages.models import Package
from baseTemplate.models import version
from CLManager.models import CLPackages
if not os.geteuid() == 0:
sys.exit("\nOnly root can run this script\n")
def main():
parser = argparse.ArgumentParser(description='Reset admin user password!')
@@ -52,4 +55,4 @@ def main():
print("Admin password successfully changed!")
if __name__ == "__main__":
main()
main()