Added translations to ProjectSend docker image

This commit is contained in:
Alexander Schomburg
2021-11-14 22:08:44 +01:00
parent d1dc6e5858
commit b9e83b3406
7 changed files with 56 additions and 76 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash -e
if [ ! -z "${TRANSLATIONS}" ]; then
OLDIFS=$IFS
IFS=','
for translation in ${TRANSLATIONS}; do
IFS=$OLDIFS
echo "**** install 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;
done
echo "**** cleanup ****"
rm -rf /tmp/*
fi
while :; do :; done & kill -STOP $! && wait $!