mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-01 12:31:49 -04:00
21 lines
699 B
Plaintext
21 lines
699 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
if [ ! -z "${TRANSLATIONS}" ]; then
|
|
OLDIFS=$IFS
|
|
IFS=','
|
|
for translation in ${TRANSLATIONS}; do
|
|
IFS=$OLDIFS
|
|
if [[ -d "/translations/${translation}" ]]; then
|
|
echo "**** install local translation: ${translation} ****"
|
|
cp -R "/translations/${translation}/*" /app/projectsend/
|
|
else
|
|
echo "**** install online translation: ${translation} ****"
|
|
curl -s -o "/tmp/${translation}.zip" -L "https://www.projectsend.org/translations/get.php?lang=${translation}"
|
|
unzip -o "/tmp/${translation}.zip" -d /app/projectsend;
|
|
fi
|
|
done
|
|
echo "**** cleanup ****"
|
|
rm -rf /tmp/*
|
|
fi
|
|
|
|
while :; do :; done & kill -STOP $! && wait $! |