mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-03 20:05:58 +01:00
bug fix: login page issue
This commit is contained in:
2
.idea/workspace.xml
generated
2
.idea/workspace.xml
generated
@@ -6,7 +6,7 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="5251c5c9-f2a1-41f2-bc76-10b517091df1" name="Changes" comment="">
|
<list default="true" id="5251c5c9-f2a1-41f2-bc76-10b517091df1" name="Changes" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/loginSystem/templates/loginSystem/login.html" beforeDir="false" afterPath="$PROJECT_DIR$/loginSystem/templates/loginSystem/login.html" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/install/install.py" beforeDir="false" afterPath="$PROJECT_DIR$/install/install.py" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|||||||
@@ -2229,6 +2229,16 @@ password="%s"
|
|||||||
command = 'mv static /usr/local/CyberCP/public/'
|
command = 'mv static /usr/local/CyberCP/public/'
|
||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
|
## Set proper permissions for static files
|
||||||
|
command = 'chown -R lscpd:lscpd /usr/local/CyberCP/public/static'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
|
command = r'find /usr/local/CyberCP/public/static -type d -exec chmod 755 {} \;'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
|
command = r'find /usr/local/CyberCP/public/static -type f -exec chmod 644 {} \;'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
path = "/usr/local/CyberCP/version.txt"
|
path = "/usr/local/CyberCP/version.txt"
|
||||||
writeToFile = open(path, 'w')
|
writeToFile = open(path, 'w')
|
||||||
@@ -2390,6 +2400,10 @@ class Migration(migrations.Migration):
|
|||||||
command = "chown -R lscpd:lscpd /usr/local/CyberCP/public/phpmyadmin/tmp"
|
command = "chown -R lscpd:lscpd /usr/local/CyberCP/public/phpmyadmin/tmp"
|
||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
|
## Fix ownership for public static files (must be owned by lscpd for web server access)
|
||||||
|
command = "chown -R lscpd:lscpd /usr/local/CyberCP/public/static"
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
## change owner
|
## change owner
|
||||||
|
|
||||||
command = "chown -R root:root /usr/local/lscp"
|
command = "chown -R root:root /usr/local/lscp"
|
||||||
|
|||||||
Reference in New Issue
Block a user