Skip to content

Commit

Permalink
bug fix: gdrive backups
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Nov 4, 2024
1 parent 857f4a9 commit 188c012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CyberCP/secMiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __call__(self, request):
logging.writeToFile(f'Path vs the final url : {pathActual}')
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'):
pass
else:
Expand Down
2 changes: 1 addition & 1 deletion plogical/backupSchedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def createLocalBackup(virtualHost, backupLogPath):

###

pathToFile = "/home/cyberpanel/" + str(randint(1000, 9999))
pathToFile = "/home/cyberpanel/" + str(randint(10**9, 10**10 - 1))
file = open(pathToFile, "w+")
file.close()

Expand Down

0 comments on commit 188c012

Please sign in to comment.