mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-02 23:43:36 +00:00
21 lines
382 B
Bash
Executable File
21 lines
382 B
Bash
Executable File
#!/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
|
|
|
|
start.sh
|