mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-02 15:33:32 +00:00
@@ -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
|
||||
|
Reference in New Issue
Block a user