2 Commits

Author SHA1 Message Date
d2087a441e fix removing quotes
Some checks failed
continuous-integration/drone/pr Build is failing
2023-11-11 08:55:12 +01:00
f4d96b0875 update README
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-10 20:04:05 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@ Add your `SSH_KEY` as docker secret:
abra app secret insert <app_name> ssh_key v1 """$(cat backupkey)
"""
```
> Attention: This command needs to be executed exactly as stated above, because it places a trailing newline at the end, if this is missing you will get the following error: `Load key "/run/secrets/ssh_key": error in libcrypto`
### Restic REST server Storage

View File

@ -139,7 +139,7 @@ def run_commands(commands):
command = command.removeprefix('bash -c').removeprefix('sh -c')
# Remove quotes surrounding the command
if (len(command) >= 2 and command[0] == command[-1] and (command[0] == "'" or command[0] == '"')):
command[1:-1]
command = command[1:-1]
# Use bash's pipefail to return exit codes inside a pipe to prevent silent failure
command = f"bash -c 'set -o pipefail;{command}'"
logging.info(f"run command in {container.name}:")