Skip to content

Commit 1ec7133

Browse files
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 <[email protected]>
1 parent 5696dff commit 1ec7133

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ct/homarr.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ source /opt/homarr/.env
4848
set +a
4949
export DB_DIALECT='sqlite'
5050
export AUTH_SECRET=$(openssl rand -base64 32)
51+
export CRON_JOB_API_KEY=$(openssl rand -base64 32)
5152
node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT
5253
for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do
5354
dirname=$(basename "$dir")
@@ -114,6 +115,7 @@ source /opt/homarr/.env
114115
set +a
115116
export DB_DIALECT='sqlite'
116117
export AUTH_SECRET=$(openssl rand -base64 32)
118+
export CRON_JOB_API_KEY=$(openssl rand -base64 32)
117119
node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT
118120
for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do
119121
dirname=$(basename "$dir")

install/homarr-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ source /opt/homarr/.env
7676
set +a
7777
export DB_DIALECT='sqlite'
7878
export AUTH_SECRET=$(openssl rand -base64 32)
79+
export CRON_JOB_API_KEY=$(openssl rand -base64 32)
7980
node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT
8081
for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do
8182
dirname=$(basename "$dir")

0 commit comments

Comments
 (0)