mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-27 12:48:01 +02:00
15 lines
325 B
Bash
Executable file
15 lines
325 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$PIPED_API" ]; then
|
|
echo "PIPED_API not set"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$HYP_API" ]; then
|
|
echo "HYP_API not set"
|
|
exit 1
|
|
fi
|
|
|
|
find /usr/share/nginx/html -type f -exec sed -i s/pipedapi.kavin.rocks/$PIPED_API/g {} \; -exec sed -i s/hyperpipeapi.onrender.com/$HYP_API/g {} \;
|
|
|
|
nginx -g "daemon off;"
|