Update 99-run.sh

This commit is contained in:
Alexandre
2025-06-02 18:39:03 +02:00
committed by GitHub
parent f5458fcba4
commit a10e3777e9

View File

@@ -5,7 +5,7 @@ bashio::log.info "Starting OpenProject"
# Ensure persistence for PGDATA and asset folders
for folder in pg assets; do
mkdir -p /data/"$folder"
if [ -d /config/"$folder" ] && [ "$(ls -A /config/"$folder")" ]; then
if [ -d /config/"$folder" ] && [ "$(ls -A /config/"$folder"/)" ]; then
# Copy only if source is non-empty
cp -rf /config/"$folder"/. /data/"$folder"/
rm -rf /config/"$folder"