From e81583018e7315df07a24aa31a4d027baf92a04f Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Fri, 10 Jun 2022 12:37:21 +0500 Subject: [PATCH] bug fix: subdomain creation on cent/alma --- plogical/upgrade.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 63e9e09ba..8cefa941f 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -245,12 +245,11 @@ class Upgrade: for items in data: if items.find("wheel") > -1 and items.find("ALL=(ALL)"): continue + elif items.find("root") > -1 and items.find("ALL=(ALL)") > -1 and items[0] != '#': + writeToFile.writelines('root ALL=(ALL:ALL) ALL\n') else: writeToFile.writelines(items) - if items.find("root") > -1 and items.find("ALL=(ALL)") > -1 and items[0] != '#': - writeToFile.writelines('root ALL=(ALL:ALL) ALL\n') - writeToFile.close() except: pass