Files
portioner/filebrowser/create_filebrowser_folders.sh

19 lines
480 B
Bash
Raw Normal View History

# Define base path
BASE="/volume1/docker/filebrowser"
# Create folders
mkdir -p "${BASE}/config" "${BASE}/database" "${BASE}/data"
# Set ownership and permissions
chown -R 1042:65538 "${BASE}"
chmod -R 750 "${BASE}"
touch "${BASE}/config/settings.json"
chown 1042:65538 "${BASE}/config/settings.json"
chmod 640 "${BASE}/config/settings.json"
touch "${BASE}/database/filebroser.db"
chown 1042:65538 "${BASE}/database/filebroser.db"
chmod 640 "${BASE}/database/filebroser.db"