14 lines
313 B
Bash
14 lines
313 B
Bash
#!/bin/bash
|
|
# Define base path
|
|
BASE="/volume1/docker/portracker"
|
|
|
|
# Create folders
|
|
mkdir -p "${BASE}/data"
|
|
|
|
# Set ownership and permissions
|
|
# Set ownership and permissions for svc-portracker (1043:65538)
|
|
chown -R 1043:65538 "${BASE}"
|
|
chmod -R 750 "${BASE}"
|
|
|
|
echo "Folders created and permissions set for ${BASE}"
|