Skip to content

Commit

Permalink
source env vars or they are empty in the user process
Browse files Browse the repository at this point in the history
  • Loading branch information
mirisbowring committed Jul 3, 2024
1 parent a1cd60e commit de6bfc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers/shells/cronjob.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
#!/bin/bash bash

# This shell can be called to execute all cronjobs to refresh the instance
# This may be enabled as a setting to refresh the storage used after any borg serve command finishes

source /home/borgwarehouse/app/.env

curl --request POST --url "${NEXTAUTH_URL}/api/cronjob/checkStatus" --header "Authorization: Bearer ${CRONJOB_KEY}"
curl --request POST --url "${NEXTAUTH_URL}/api/cronjob/getStorageUsed" --header "Authorization: Bearer ${CRONJOB_KEY}"

0 comments on commit de6bfc0

Please sign in to comment.