switch to s6v3, general cleanup, add/update workflows

This commit is contained in:
aptalca
2023-05-19 09:29:25 -04:00
parent 06f7b7bfb4
commit fbbbbaa148
11 changed files with 66 additions and 62 deletions
@@ -0,0 +1,19 @@
#!/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
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-projectsend-translations/run