mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 22:36:12 +01:00
bug fix: gdrive backups
This commit is contained in:
@@ -35,7 +35,7 @@ class secMiddleware:
|
|||||||
logging.writeToFile(f'Path vs the final url : {pathActual}')
|
logging.writeToFile(f'Path vs the final url : {pathActual}')
|
||||||
logging.writeToFile(FinalURL)
|
logging.writeToFile(FinalURL)
|
||||||
|
|
||||||
if pathActual == '/' or pathActual == '/verifyLogin' or pathActual == '/logout' or pathActual.startswith('/api')\
|
if pathActual == "/backup/localInitiate" or pathActual == '/' or pathActual == '/verifyLogin' or pathActual == '/logout' or pathActual.startswith('/api')\
|
||||||
or pathActual.endswith('/webhook') or pathActual.startswith('/cloudAPI') or pathActual.endswith('/gitNotify'):
|
or pathActual.endswith('/webhook') or pathActual.startswith('/cloudAPI') or pathActual.endswith('/gitNotify'):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class backupSchedule:
|
|||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
pathToFile = "/home/cyberpanel/" + str(randint(1000, 9999))
|
pathToFile = "/home/cyberpanel/" + str(randint(10**9, 10**10 - 1))
|
||||||
file = open(pathToFile, "w+")
|
file = open(pathToFile, "w+")
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user