mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
bug fix: CLScripts
This commit is contained in:
22
CLScript/UserInfo.py
Executable file
22
CLScript/UserInfo.py
Executable 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()
|
||||
Reference in New Issue
Block a user