11 lines
283 B
Bash
11 lines
283 B
Bash
|
|
# Define base path
|
||
|
|
BASE="/volume1/docker/paperless"
|
||
|
|
|
||
|
|
# Create folders
|
||
|
|
mkdir -p "${BASE}/data" "${BASE}/media" "${BASE}/export" "${BASE}/consume" "${BASE}/redisdata"
|
||
|
|
|
||
|
|
# Set ownership and permissions
|
||
|
|
chown -R 1036:65538 "${BASE}"
|
||
|
|
chmod -R 750 "${BASE}"
|
||
|
|
chmod -R 770 "${BASE}/consume"
|