From 1ec71332bf8a476acee91900c0e4b2271356c8bb Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Sun, 29 Jun 2025 22:01:04 +0200 Subject: [PATCH] Add cron-job api-key env variable to homarr script (#5204) * Add cron-job api-key env variable to homarr script * Update homarr.sh --------- Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- ct/homarr.sh | 2 ++ install/homarr-install.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/ct/homarr.sh b/ct/homarr.sh index 686c36313..e50ba4e6e 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -48,6 +48,7 @@ source /opt/homarr/.env set +a export DB_DIALECT='sqlite' export AUTH_SECRET=$(openssl rand -base64 32) +export CRON_JOB_API_KEY=$(openssl rand -base64 32) node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do dirname=$(basename "$dir") @@ -114,6 +115,7 @@ source /opt/homarr/.env set +a export DB_DIALECT='sqlite' export AUTH_SECRET=$(openssl rand -base64 32) +export CRON_JOB_API_KEY=$(openssl rand -base64 32) node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do dirname=$(basename "$dir") diff --git a/install/homarr-install.sh b/install/homarr-install.sh index 0ff212da9..4afa5f585 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -76,6 +76,7 @@ source /opt/homarr/.env set +a export DB_DIALECT='sqlite' export AUTH_SECRET=$(openssl rand -base64 32) +export CRON_JOB_API_KEY=$(openssl rand -base64 32) node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do dirname=$(basename "$dir")