diff options
| -rw-r--r-- | .docker/app/startup.sh | 24 | ||||
| -rw-r--r-- | .docker/app/update.sh | 24 | ||||
| -rw-r--r-- | .docker/app/updater.sh | 24 | ||||
| -rw-r--r-- | locale/sq/LC_MESSAGES/messages.mo | bin | 53161 -> 53698 bytes | |||
| -rw-r--r-- | locale/sq/LC_MESSAGES/messages.po | 24 |
5 files changed, 84 insertions, 12 deletions
diff --git a/.docker/app/startup.sh b/.docker/app/startup.sh index 425fca69c..535d9f4ab 100644 --- a/.docker/app/startup.sh +++ b/.docker/app/startup.sh @@ -13,6 +13,30 @@ done unset HTTP_PORT unset HTTP_HOST +# allow setting environment variables with docker secrets +# the format is <variable-name>__FILE +SUFFIX="__FILE" + +# loop through all environment variables +for VAR in $(printenv | awk -F= '{print $1}'); do + if [[ $VAR == *"$SUFFIX" ]]; then + ENV_FILE_NAME="$(printenv "${VAR}")" + ENV_VAR="${VAR%$SUFFIX}" + + if printenv "$ENV_VAR" &>/dev/null; then + echo "warning: Both $ENV_VAR and $VAR are set. $VAR will override $ENV_VAR." + fi + + if [[ -r "$ENV_FILE_NAME" ]]; then + VALUE="$(cat "$ENV_FILE_NAME")" + export "$ENV_VAR"="$VALUE" + echo "$ENV_VAR environment variable was set by secret file $ENV_FILE_NAME" + else + echo "warning: Secret file $ENV_FILE_NAME for $VAR is not readable or does not exist." + fi + fi +done + if ! id app >/dev/null 2>&1; then addgroup -g $OWNER_GID app adduser -D -h $APP_INSTALL_BASE_DIR -G app -u $OWNER_UID app diff --git a/.docker/app/update.sh b/.docker/app/update.sh index e383091d1..4c89a7efc 100644 --- a/.docker/app/update.sh +++ b/.docker/app/update.sh @@ -8,6 +8,30 @@ unset HTTP_PORT unset HTTP_HOST +# allow setting environment variables with docker secrets +# the format is <variable-name>__FILE +SUFFIX="__FILE" + +# loop through all environment variables +for VAR in $(printenv | awk -F= '{print $1}'); do + if [[ $VAR == *"$SUFFIX" ]]; then + ENV_FILE_NAME="$(printenv "${VAR}")" + ENV_VAR="${VAR%$SUFFIX}" + + if printenv "$ENV_VAR" &>/dev/null; then + echo "warning: Both $ENV_VAR and $VAR are set. $VAR will override $ENV_VAR." + fi + + if [[ -r "$ENV_FILE_NAME" ]]; then + VALUE="$(cat "$ENV_FILE_NAME")" + export "$ENV_VAR"="$VALUE" + echo "$ENV_VAR environment variable was set by secret file $ENV_FILE_NAME" + else + echo "warning: Secret file $ENV_FILE_NAME for $VAR is not readable or does not exist." + fi + fi +done + if ! id app >/dev/null 2>&1; then addgroup -g $OWNER_GID app adduser -D -h $APP_INSTALL_BASE_DIR -G app -u $OWNER_UID app diff --git a/.docker/app/updater.sh b/.docker/app/updater.sh index c34cf5225..c38ddd20d 100644 --- a/.docker/app/updater.sh +++ b/.docker/app/updater.sh @@ -10,6 +10,30 @@ unset HTTP_HOST unset ADMIN_USER_PASS unset AUTO_CREATE_USER_PASS +# allow setting environment variables with docker secrets +# the format is <variable-name>__FILE +SUFFIX="__FILE" + +# loop through all environment variables +for VAR in $(printenv | awk -F= '{print $1}'); do + if [[ $VAR == *"$SUFFIX" ]]; then + ENV_FILE_NAME="$(printenv "${VAR}")" + ENV_VAR="${VAR%$SUFFIX}" + + if printenv "$ENV_VAR" &>/dev/null; then + echo "warning: Both $ENV_VAR and $VAR are set. $VAR will override $ENV_VAR." + fi + + if [[ -r "$ENV_FILE_NAME" ]]; then + VALUE="$(cat "$ENV_FILE_NAME")" + export "$ENV_VAR"="$VALUE" + echo "$ENV_VAR environment variable was set by secret file $ENV_FILE_NAME" + else + echo "warning: Secret file $ENV_FILE_NAME for $VAR is not readable or does not exist." + fi + fi +done + # wait for the app container to delete .app_is_ready and perform rsync, etc. sleep 30 diff --git a/locale/sq/LC_MESSAGES/messages.mo b/locale/sq/LC_MESSAGES/messages.mo Binary files differindex f8f96b1f0..2ea5786b2 100644 --- a/locale/sq/LC_MESSAGES/messages.mo +++ b/locale/sq/LC_MESSAGES/messages.mo diff --git a/locale/sq/LC_MESSAGES/messages.po b/locale/sq/LC_MESSAGES/messages.po index 0f21c0791..95237233a 100644 --- a/locale/sq/LC_MESSAGES/messages.po +++ b/locale/sq/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-05-04 13:44+0300\n" -"PO-Revision-Date: 2025-05-06 17:02+0000\n" +"PO-Revision-Date: 2025-10-10 18:07+0000\n" "Last-Translator: Besnik Bleta <besnik@programeshqip.org>\n" "Language-Team: Albanian <https://hosted.weblate.org/projects/tt-rss/webui/sq/" ">\n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 5.12-dev\n" +"X-Generator: Weblate 5.14-dev\n" #: backend.php:61 msgid "Use default" @@ -137,7 +137,7 @@ msgstr "Shfaqi artikujt" #: index.php:181 msgid "Adaptive" -msgstr "" +msgstr "Që përshtatet" #: index.php:182 msgid "All Articles" @@ -376,7 +376,7 @@ msgstr "Po kryhen përditësime për versionin %d" #: classes/Handler_Public.php:700 classes/Handler_Public.php:727 #: js/PrefHelpers.js:418 js/PrefHelpers.js:764 msgid "Update" -msgstr "" +msgstr "Përditësoje" #: classes/Handler_Public.php:720 #, php-format @@ -718,7 +718,7 @@ msgstr "Krejt artikujt" #: classes/RPC.php:549 msgid "Fresh" -msgstr "" +msgstr "Nga e Para" #: classes/RPC.php:552 classes/Feeds.php:1179 msgid "Recently read" @@ -879,7 +879,7 @@ msgstr "Të përgjithshme" #: classes/Pref_Feeds.php:646 js/PrefFeedTree.js:447 js/CommonDialogs.js:61 #: js/CommonDialogs.js:551 msgid "Place in category:" -msgstr "" +msgstr "Vendosi në kategori:" #: classes/Pref_Feeds.php:653 js/Feeds.js:650 js/CommonDialogs.js:567 msgid "Language:" @@ -1364,7 +1364,7 @@ msgstr "Pamje mozaik" #: classes/Pref_Prefs.php:128 msgid "On wider screens, if always expanded" -msgstr "" +msgstr "Në ekrane më të mëdhenj, në qoftë përherë i zgjeruar" #: classes/Pref_Prefs.php:129 msgid "Required score" @@ -1617,7 +1617,7 @@ msgstr "Mesazh provë nga tt-rss" #: classes/Pref_System.php:35 msgid "Task name" -msgstr "" +msgstr "Emër pune" #: classes/Pref_System.php:36 msgid "Last executed" @@ -1625,7 +1625,7 @@ msgstr "Ekzekutuar së fundi më" #: classes/Pref_System.php:37 msgid "Duration (seconds)" -msgstr "" +msgstr "Kohëzgjatje (sekonda)" #: classes/Pref_System.php:38 msgid "Return code" @@ -1698,7 +1698,7 @@ msgstr "Dërgo email provë" #: classes/Pref_System.php:240 msgid "Scheduled tasks" -msgstr "" +msgstr "Punë të vëna në plan" #: classes/Pref_System.php:251 msgid "PHP Information" @@ -2198,7 +2198,7 @@ msgstr "" #: js/PrefFilterTree.js:66 msgid "Inverse" -msgstr "" +msgstr "Së prapthi" #: js/PrefFilterTree.js:136 js/PrefFilterTree.js:165 js/PrefFilterTree.js:198 msgid "No filters selected." @@ -2740,7 +2740,7 @@ msgstr "Tashmë e instaluar" #: js/PrefHelpers.js:587 #, java-printf-format, javascript-format msgid "Updated: %s" -msgstr "" +msgstr "U përditësua më: %s" #: js/PrefHelpers.js:604 msgid "Looking for plugins..." |