fixed some bugs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jblu 2023-08-29 09:25:09 -05:00
parent d0d187f203
commit 1f8d77b98d
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
FROM python:alpine3.18
RUN apk add --no-cache mariadb-client rclone supercronic docker restic
RUN apk add --no-cache mariadb-client rclone supercronic docker restic zip
COPY . opt
RUN chmod +x /opt/entrypoint.sh
RUN chmod +x /opt/restic.sh

View File

@ -79,7 +79,7 @@ apprise_body = os.getenv("apprise_body")
# Stop seafile and seafile hub
if docker_command:
os.system(f'docker exec {container_name} /opt/seafile/seafile-server-latest/seahub.sh stop')
os.system(f'docker exec {container_name} /opt/seafile/seafile-serverlatest/seahub.sh stop')
os.system(f'docker exec {container_name} /opt/seafile/seafile-server-latest/seafile.sh stop')
# Dump the databases
@ -106,12 +106,12 @@ if rclone_push:
# Remote restic backup
if restic_push:
os.system("./restic.sh")
os.system("/opt/restic.sh")
# Start seafile and seafile hub
if docker_command:
os.system(f'docker exec {container_name} /opt/seafile/seafile-server-latest/seahub.sh start')
os.system(f'docker exec {container_name} /opt/seafile/seafile-server-latest/seafile.sh start')
os.system(f'docker exec {container_name} /opt/seafile/seafile-server-latest/seahub.sh start')
# compress db files
if zip_db_files:
@ -125,8 +125,7 @@ if offload_db_files:
# cleanup
if cleanup:
os.system(f'rm {db_dump_tmp_path}*sfdb_*')
os.system(f'Rclone delete -P \
{rclone_db_retention} {rclone_remote}:{rclone_remote_db_path}')
os.system(f'rclone delete -P {rclone_db_retention} {rclone_remote}:{rclone_remote_db_path}')
# healthcheck
if healthcheck: