Compare commits

...

5 Commits

Author SHA1 Message Date
ae8320118a attempting to fix docker run issues
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-08 14:04:21 -05:00
07fedd0b0b updated healthcheck
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-03 20:02:31 -05:00
f17988bfa9 changed the healthcheck
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-03 12:47:31 -05:00
c79625a64a Merge pull request 'updated documentation' (#1) from update-docs into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #1
2024-05-28 16:00:18 -05:00
8e40af9002 updated documentation
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2024-05-28 15:59:05 -05:00
8 changed files with 272 additions and 273 deletions

View File

@ -17,7 +17,6 @@ steps:
- main
event:
- push
- pull_request
- name: docker-test
image: plugins/docker
settings:
@ -34,4 +33,3 @@ steps:
- dev*
event:
- push
- pull_request

View File

@ -1,8 +1,6 @@
def healthcheck_ping(req_obj, url, start=False):
if start == True:
url + '/start'
def healthcheck_ping(req_obj, url):
try:
req_obj.get(url, timeout=10)
req_obj.get(url, timeout=5)
except req_obj.RequestException as e:
# Log ping failure here...
print("Ping failed: %s" % e)

View File

@ -7,3 +7,6 @@ need 'RESTIC_REPOSITORY' environmental variable
need 'AWS_ACCESS_KEY_ID' environmental variable
need 'AWS_SECRET_ACCESS_KEY' environmental variable
[![Build Status](https://drone.jonb.io/api/badges/jblu/seafile-backup/status.svg)](https://drone.jonb.io/jblu/seafile-backup)
![seafile-backup](https://thunder.jonb.io/b/3/9507d221-6b6f-4627-b211-45c3668221cb.svg)

View File

@ -79,7 +79,7 @@ apprise_body = os.getenv("apprise_body")
# healthcheck - Tell healthchecks.io we are starting the backup
if healthcheck:
healthcheck_ping(r, healthcheck_url, start=True)
healthcheck_ping(r, healthcheck_url.rstrip("/") + "/start")
# Stop seafile and seafile hub
if docker_command: