File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ set +a
4949export DB_DIALECT='sqlite'
5050export AUTH_SECRET=$(openssl rand -base64 32)
5151node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT
52+ for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do
53+ dirname=$(basename "$dir")
54+ mkdir -p "/opt/homarr_db/migrations/$dirname"
55+ cp -r "$dir"/* "/opt/homarr_db/migrations/$dirname/" 2>/dev/null || true
56+ done
5257export HOSTNAME=$(ip route get 1.1.1.1 | grep -oP 'src \K[^ ]+')
5358envsubst '${HOSTNAME}' < /etc/nginx/templates/nginx.conf > /etc/nginx/nginx.conf
5459nginx -g 'daemon off;' &
@@ -97,6 +102,11 @@ set +a
97102export DB_DIALECT='sqlite'
98103export AUTH_SECRET=$(openssl rand -base64 32)
99104node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT
105+ for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do
106+ dirname=$(basename "$dir")
107+ mkdir -p "/opt/homarr_db/migrations/$dirname"
108+ cp -r "$dir"/* "/opt/homarr_db/migrations/$dirname/" 2>/dev/null || true
109+ done
100110export HOSTNAME=$(ip route get 1.1.1.1 | grep -oP 'src \K[^ ]+')
101111envsubst '${HOSTNAME}' < /etc/nginx/templates/nginx.conf > /etc/nginx/nginx.conf
102112nginx -g 'daemon off;' &
Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ set +a
9292export DB_DIALECT='sqlite'
9393export AUTH_SECRET=$(openssl rand -base64 32)
9494node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT
95+ for dir in $(find /opt/homarr_db/migrations/migrations -mindepth 1 -maxdepth 1 -type d); do
96+ dirname=$(basename "$dir")
97+ mkdir -p "/opt/homarr_db/migrations/$dirname"
98+ cp -r "$dir"/* "/opt/homarr_db/migrations/$dirname/" 2>/dev/null || true
99+ done
95100export HOSTNAME=$(ip route get 1.1.1.1 | grep -oP 'src \K[^ ]+')
96101envsubst '${HOSTNAME}' < /etc/nginx/templates/nginx.conf > /etc/nginx/nginx.conf
97102nginx -g 'daemon off;' &
You can’t perform that action at this time.
0 commit comments