docker file

This commit is contained in:
Eau
2026-06-15 03:10:34 -05:00
commit d6da982fa2
2 changed files with 29 additions and 0 deletions

17
app.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
EMAIL=$(cat $EMAIL_FILE)
PASSWORD=$(cat $PASSWORD_FILE)
ob login --email "$EMAIL" --password "$PASSWORD"
# Source - https://stackoverflow.com/a/13864829
# Posted by Lionel, modified by community. See post 'Timeline' for change history
# Retrieved 2026-06-15, License - CC BY-SA 4.0
if [ -z ${VAULT_PASSWORD_FILE+x} ]; then
ob sync-setup --vault "$VAULT_NAME" --path "$SYNC_FOLDER";
else
ob sync-setup --vault "$VAULT_NAME" --path "$SYNC_FOLDER" --password "$(< $VAULT_PASSWORD_FILE)";
fi
ob sync --path "$SYNC_FOLDER"