bug fix: CLScripts

This commit is contained in:
Usman Nasir
2019-12-31 19:55:29 +05:00
parent 457c5c1e62
commit 79eb936195
12 changed files with 76 additions and 37 deletions

22
CLScript/UserInfo.py Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/local/CyberCP/bin/python
import getpass
def main():
if getpass.getuser() == 'root':
userType = "admin"
else:
userType = "user"
data = """{
"userName": "%s",
"userType": "%s",
"lang": "en",
"assetsUri": "/usr/local/lvemanager",
"baseUri": "/usr/local/lvemanager",
"defaultDomain": "cyberpanel.net"
}""" % (getpass.getuser(), userType)
print(data)
if __name__ == '__main__':
main()