mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-19 05:52:05 +01:00
bug fix: subdomain creation on cent/alma
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user