Skip to content

Commit

Permalink
Add archive folder and set permissions
Browse files Browse the repository at this point in the history
Update log rotation to use ckan user
  • Loading branch information
MarkCalvert committed Feb 8, 2024
1 parent b345d9b commit 6cc5abe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ckan/docker-entrypoint.d/02_setup_dbca.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/bin/bash

## Create logs folder and files
## Create logs folder/files and set permissions
mkdir -p $APP_DIR/logs
touch $APP_DIR/logs/ckan.log
touch $APP_DIR/logs/ckan-worker.log
touch $APP_DIR/logs/ckan-crons-jobs.log
chown -R ckan:ckan $APP_DIR/logs

## Create archive folder and set permissions
mkdir -p $CKAN_STORAGE_PATH/archiver
chown -R ckan:ckan $CKAN_STORAGE_PATH/archiver

echo "CKAN__PLUGINS: $CKAN__PLUGINS"

if [[ $CKAN__PLUGINS == *"xloader"* ]]; then
Expand Down
1 change: 1 addition & 0 deletions ckan/setup/dbca_ckan_rotate_logs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/srv/app/logs/ckan-worker.log /srv/app/logs/ckan-crons-jobs.log {
su ckan ckan
daily
rotate 7
missingok
Expand Down

0 comments on commit 6cc5abe

Please sign in to comment.