Handle missing SSL files for Omada addon

This commit is contained in:
Alexandre
2025-12-17 17:07:53 +01:00
parent 7f5a932586
commit b2b12d697a

View File

@@ -7,7 +7,11 @@ CONFIGSOURCE="/config"
# Use ssl
if [ -d /ssl ]; then
mkdir -p /cert
cp -r /ssl/* /cert
if compgen -G "/ssl/*" > /dev/null; then
cp -r /ssl/* /cert
else
echo "No SSL files found in /ssl, skipping copy"
fi
chown -R 508:508 /cert
fi