mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +01:00
rainloop admin password
This commit is contained in:
@@ -483,25 +483,25 @@ class preFlightsChecks:
|
|||||||
|
|
||||||
def fixCyberPanelPermissions(self):
|
def fixCyberPanelPermissions(self):
|
||||||
|
|
||||||
# try:
|
try:
|
||||||
# import randomPassword
|
import randomPassword
|
||||||
#
|
|
||||||
# content = """<?php
|
content = """<?php
|
||||||
#
|
|
||||||
# $_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
|
$_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
|
||||||
# include '/usr/local/CyberCP/public/rainloop/index.php';
|
include '/usr/local/CyberCP/public/rainloop/index.php';
|
||||||
#
|
|
||||||
# $oConfig = \RainLoop\Api::Config();
|
$oConfig = \RainLoop\Api::Config();
|
||||||
# $oConfig->SetPassword('%s');
|
$oConfig->SetPassword('%s');
|
||||||
# echo $oConfig->Save() ? 'Done' : 'Error';
|
echo $oConfig->Save() ? 'Done' : 'Error';
|
||||||
#
|
|
||||||
# ?>""" % (randomPassword.generate_pass())
|
?>""" % (randomPassword.generate_pass())
|
||||||
#
|
|
||||||
# writeToFile = open('/usr/local/CyberCP/public/rainloop.php', 'w')
|
writeToFile = open('/usr/local/CyberCP/public/rainloop.php', 'w')
|
||||||
# writeToFile.write(content)
|
writeToFile.write(content)
|
||||||
# writeToFile.close()
|
writeToFile.close()
|
||||||
# except:
|
except:
|
||||||
# pass
|
pass
|
||||||
|
|
||||||
###### fix Core CyberPanel permissions
|
###### fix Core CyberPanel permissions
|
||||||
|
|
||||||
@@ -651,8 +651,8 @@ class preFlightsChecks:
|
|||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
# command = '/usr/local/lsws/lsphp72/bin/php /usr/local/CyberCP/public/rainloop.php'
|
command = '/usr/local/lsws/lsphp72/bin/php /usr/local/CyberCP/public/rainloop.php'
|
||||||
# preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
def install_unzip(self):
|
def install_unzip(self):
|
||||||
self.stdOut("Install unzip")
|
self.stdOut("Install unzip")
|
||||||
|
|||||||
Reference in New Issue
Block a user