Add automatically creating the volume folder.

This commit is contained in:
2026-07-04 15:32:13 -07:00
parent 6accd3b152
commit b9b36aa2ac
3 changed files with 22 additions and 1 deletions
@@ -6,7 +6,7 @@ volumes:
driver: local
driver_opts:
type: none
device: ../../Volumes/F-DroidRepo/data
device: $FDROID_DATA #../../Volumes/F-DroidRepo/fdroid by default.
o: bind
services:
+4
View File
@@ -9,6 +9,10 @@ COMPOSE_BAKE=true
CPU=0.25
MEM=0.25G
## Storage Location ##
FDROID_DATA="../../Volumes/F-DroidRepo/fdroid"
## Repo Settings ##
#WEBROOT="/var/www/html"
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# 2026-07-04 Hyperling
# Create the necessary folders for volumes to work.
# This must be run before the container will start properly.
## Setup ##
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
source $DIR/.env
## Main ##
# Create folders.
mkdir -pv $FDROID_DATA
# Finish successfully.
exit 0