aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz <2871798+orhtej2@users.noreply.github.com>2024-07-29 22:41:59 +0000
committerGitHub <noreply@github.com>2024-07-29 22:41:59 +0000
commitd7e26636fe464bfa456d400f5b2b2d5d93745dd4 (patch)
tree710acde6179d9f7588a66c05f452489d2810206d
parentc3c4416b24aaec57b8ec04f7479be84033259134 (diff)
parenta9f368295858eb9aec2850a0dc2f7c776dd5ea97 (diff)
downloadmastodon_ynh-d7e26636fe464bfa456d400f5b2b2d5d93745dd4.tar.gz
mastodon_ynh-d7e26636fe464bfa456d400f5b2b2d5d93745dd4.tar.bz2
mastodon_ynh-d7e26636fe464bfa456d400f5b2b2d5d93745dd4.zip
Merge pull request #460 from YunoHost-Apps/orhtej2-patch-1
Add redis_namespace to upgrade
-rw-r--r--ALL_README.md1
-rw-r--r--README_id.md51
-rw-r--r--scripts/upgrade5
3 files changed, 57 insertions, 0 deletions
diff --git a/ALL_README.md b/ALL_README.md
index 152f2e7..4ed64dd 100644
--- a/ALL_README.md
+++ b/ALL_README.md
@@ -5,4 +5,5 @@
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)
+- [Baca README dalam bahasa bahasa Indonesia](README_id.md)
- [阅读中文(简体)的 README](README_zh_Hans.md)
diff --git a/README_id.md b/README_id.md
new file mode 100644
index 0000000..c38d70f
--- /dev/null
+++ b/README_id.md
@@ -0,0 +1,51 @@
+<!--
+N.B.: README ini dibuat secara otomatis oleh <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
+Ini TIDAK boleh diedit dengan tangan.
+-->
+
+# Mastodon untuk YunoHost
+
+[![Tingkat integrasi](https://dash.yunohost.org/integration/mastodon.svg)](https://ci-apps.yunohost.org/ci/apps/mastodon/) ![Status kerja](https://ci-apps.yunohost.org/ci/badges/mastodon.status.svg) ![Status pemeliharaan](https://ci-apps.yunohost.org/ci/badges/mastodon.maintain.svg)
+
+[![Pasang Mastodon dengan YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mastodon)
+
+*[Baca README ini dengan bahasa yang lain.](./ALL_README.md)*
+
+> *Paket ini memperbolehkan Anda untuk memasang Mastodon secara cepat dan mudah pada server YunoHost.*
+> *Bila Anda tidak mempunyai YunoHost, silakan berkonsultasi dengan [panduan](https://yunohost.org/install) untuk mempelajari bagaimana untuk memasangnya.*
+
+## Ringkasan
+
+Mastodon is a free, open-source microblogging social network.
+It is a decentralized alternative to commercial platforms like Twitter and avoids the risks of a single company monopolizing your communication for commercial purposes.
+
+
+**Versi terkirim:** 4.2.10~ynh1
+
+**Demo:** <https://joinmastodon.org/>
+
+## Tangkapan Layar
+
+![Tangkapan Layar pada Mastodon](./doc/screenshots/mastodon.png)
+
+## Dokumentasi dan sumber daya
+
+- Website aplikasi resmi: <https://joinmastodon.org/>
+- Dokumentasi admin resmi: <https://docs.joinmastodon.org/>
+- Depot kode aplikasi hulu: <https://github.com/mastodon/mastodon>
+- Gudang YunoHost: <https://apps.yunohost.org/app/mastodon>
+- Laporkan bug: <https://github.com/YunoHost-Apps/mastodon_ynh/issues>
+
+## Info developer
+
+Silakan kirim pull request ke [`testing` branch](https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing).
+
+Untuk mencoba branch `testing`, silakan dilanjutkan seperti:
+
+```bash
+sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing --debug
+atau
+sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing --debug
+```
+
+**Info lebih lanjut mengenai pemaketan aplikasi:** <https://yunohost.org/packaging_apps>
diff --git a/scripts/upgrade b/scripts/upgrade
index 2dd3d32..c889e65 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -39,6 +39,11 @@ if [[ -z "${service:-}" ]]; then
service="$app-web.service"
ynh_app_setting_set --app="$app" --key=service --value="$service"
fi
+# Set `redis_namespace` settings
+if [[ -z "${redis_namespace:-}" ]]; then
+ redis_namespace=${app}_production
+ ynh_app_setting_set --app="$app" --key=redis_namespace --value="$redis_namespace"
+fi
# Remove previous added repository
ynh_remove_extra_repo