2021-12-24 16:30:50 +01:00
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
# shellcheck shell=bash
|
|
|
|
|
|
|
|
# source env variables
|
2022-07-18 18:41:41 +02:00
|
|
|
source /etc/cont-init.d/20-setenv.sh
|
2021-12-24 16:30:50 +01:00
|
|
|
|
|
|
|
# fix permissions
|
|
|
|
find '/app' -type 'd' \( -not -perm 775 -and -not -path '/app/downloads*' \) -exec chmod 775 '{}' \+
|
|
|
|
find '/app' -type 'f' \( -not -perm 664 -and -not -path '/app/downloads*' \) -exec chmod 664 '{}' \+
|
|
|
|
|
|
|
|
find '/app' \( -not -user abc -and -not -path '/app/downloads*' \) -exec chown abc '{}' \+
|
|
|
|
find '/app' \( -not -group abc -and -not -path '/app/downloads*' \) -exec chown :abc '{}' \+
|
2022-05-29 19:11:38 +02:00
|
|
|
|
|
|
|
# fix schedules
|
|
|
|
chmod -R +x /app/schedules
|