Update 02-restorestreamdata.sh

This commit is contained in:
Alexandre
2025-03-03 09:22:42 +01:00
committed by GitHub
parent 0a36abbe17
commit 4e20827fea

View File

@@ -2,6 +2,14 @@
# shellcheck shell=bash
set -e
# Save a copy of the script for further restarts
if [ -f /etc/cont-init.d/99-run.sh ]; then
mkdir -p /etc/scripts-init
sed -i "s|/etc/cont-init.d|/etc/scripts-init|g" /ha_entrypoint.sh
sed -i "/ rm/d" /ha_entrypoint.sh
cp /etc/cont-init.d/99-run.sh /etc/scripts-init/
fi
if [ -d /config/TemporaryFiles ]; then
# Check if there are .wav files in /config/TemporaryFiles