add findutils/remove prerun patches

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey
2024-03-12 16:42:32 +01:00
parent baacde631f
commit 9d81b8aaa7
3 changed files with 13 additions and 23 deletions

View File

@@ -1,20 +1,11 @@
#!/bin/sh
cd / || exit
for patch in /data/etc/prerun/patches/*.patch; do
[ -e "$patch" ] || break
echo "Applying prerun patch using patch -p1: $patch"
patch -p1 <"$patch"
done
for script in /data/etc/prerun/scripts/*.sh; do
[ -e "$patch" ] || break
echo "Exexcuting prerun script: $script"
chmod +x "$script"
"$script"
done
cd /app || exit
if [ -n "$(ls -A /data/etc/prerun 2> /dev/null)" ]; then
for script in /data/etc/prerun/*.sh; do
echo "Exexcuting prerun script: $script"
chmod +x "$script"
"$script"
done
fi
exec start.sh