bug fix: subdomain creation on cent/alma

This commit is contained in:
Usman Nasir
2022-06-10 12:37:21 +05:00
parent 516a68fe39
commit e81583018e

View File

@@ -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