From 75304afeb931f7010e48ee00088ea0ebc1891f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 22 Sep 2024 22:05:48 +0200 Subject: [PATCH 1/9] cleaning --- scripts/_common.sh | 12 ------------ scripts/backup | 6 ------ scripts/change_url | 10 ---------- scripts/install | 12 ------------ scripts/remove | 18 +----------------- scripts/restore | 6 ------ scripts/upgrade | 15 --------------- 7 files changed, 1 insertion(+), 78 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 944a65e..027c9d7 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,15 +3,3 @@ #================================================= # COMMON VARIABLES #================================================= - -#================================================= -# PERSONAL HELPERS -#================================================= - -#================================================= -# EXPERIMENTAL HELPERS -#================================================= - -#================================================= -# FUTURE OFFICIAL HELPERS -#================================================= diff --git a/scripts/backup b/scripts/backup index cf33546..357f59a 100644 --- a/scripts/backup +++ b/scripts/backup @@ -1,11 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START -#================================================= -# IMPORT GENERIC HELPERS -#================================================= - source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers diff --git a/scripts/change_url b/scripts/change_url index 6d45f10..29e74bc 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -1,16 +1,8 @@ #!/bin/bash -#================================================= -# GENERIC STARTING -#================================================= -# IMPORT GENERIC HELPERS -#================================================= - source _common.sh source /usr/share/yunohost/helpers -#================================================= -# STANDARD MODIFICATIONS #================================================= # STOP SYSTEMD SERVICE #================================================= @@ -43,8 +35,6 @@ ynh_add_config --template="../conf/app.ini" --destination="$install_dir/custom/c chmod 400 "$install_dir/custom/conf/app.ini" chown $app:$app "$install_dir/custom/conf/app.ini" -#================================================= -# GENERIC FINALISATION #================================================= # START SYSTEMD SERVICE #================================================= diff --git a/scripts/install b/scripts/install index c1e0cd6..2ab316f 100644 --- a/scripts/install +++ b/scripts/install @@ -1,11 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START -#================================================= -# IMPORT GENERIC HELPERS -#================================================= - source _common.sh source /usr/share/yunohost/helpers @@ -13,7 +7,6 @@ source /usr/share/yunohost/helpers # RETRIEVE ARGUMENTS FROM THE MANIFEST #================================================= -# Retrieve arguments key=$(ynh_string_random) ynh_app_setting_set --app=$app --key=key --value=$key @@ -22,7 +15,6 @@ ynh_app_setting_set --app=$app --key=key --value=$key #================================================= ynh_script_progression --message="Setting up source files..." --weight=3 -# Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir=$install_dir mkdir -p "$install_dir/custom/conf/auth.d" @@ -54,13 +46,10 @@ ynh_add_config --template="ldap.conf" --destination="$install_dir/custom/conf/au #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -# Configure init script ynh_add_systemd_config -# Create a dedicated NGINX config ynh_add_nginx_config -# Use logrotate to manage application logfile(s) ynh_use_logrotate chown -R $app:$app "/var/log/$app" @@ -73,7 +62,6 @@ yunohost service add $app --description="Lightweight Git forge" --log="/var/log/ #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=3 -# Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= diff --git a/scripts/remove b/scripts/remove index 3c14eef..157207e 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,39 +1,23 @@ #!/bin/bash -#================================================= -# GENERIC START -#================================================= -# IMPORT GENERIC HELPERS -#================================================= - source _common.sh source /usr/share/yunohost/helpers #================================================= # REMOVE SYSTEM CONFIGURATIONS #================================================= -# REMOVE SYSTEMD SERVICE -#================================================= ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 -# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) -if ynh_exec_warn_less yunohost service status $app >/dev/null -then - ynh_script_progression --message="Removing $app service integration..." --weight=1 +if ynh_exec_warn_less yunohost service status $app >/dev/null; then yunohost service remove $app fi -# Remove the dedicated systemd config ynh_remove_systemd_config -# Remove the app-specific logrotate config ynh_remove_logrotate -# Remove the dedicated NGINX config ynh_remove_nginx_config -ynh_secure_remove --file="/var/log/$app" - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index fac91e1..ab75192 100644 --- a/scripts/restore +++ b/scripts/restore @@ -1,11 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START -#================================================= -# IMPORT GENERIC HELPERS -#================================================= - source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers diff --git a/scripts/upgrade b/scripts/upgrade index 0463990..a8dd79a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,16 +1,8 @@ #!/bin/bash -#================================================= -# GENERIC START -#================================================= -# IMPORT GENERIC HELPERS -#================================================= - source _common.sh source /usr/share/yunohost/helpers -#================================================= -# STANDARD UPGRADE STEPS #================================================= # STOP SYSTEMD SERVICE #================================================= @@ -23,26 +15,20 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= ynh_script_progression --message="Setting up source files..." --weight=3 -# Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir=$install_dir --keep="custom/conf/app.ini custom/conf/auth.d/ldap.conf" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" -#================================================= -# RESTORE SYSTEM CONFIGURATIONS #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1 -# Create a dedicated systemd config ynh_add_systemd_config -# Create a dedicated NGINX config ynh_add_nginx_config -# Use logrotate to manage application logfile(s) ynh_use_logrotate chown -R $app:$app "/var/log/$app" @@ -55,7 +41,6 @@ yunohost service add $app --description="Lightweight Git forge" --log="/var/log/ #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -# Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= From f093efe960dd30107bd431dd708793b7ce0c4797 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 22 Sep 2024 20:05:58 +0000 Subject: [PATCH 2/9] Auto-update READMEs --- ALL_README.md | 3 +++ README.md | 2 +- README_es.md | 4 ++-- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_id.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++ README_nl.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++ README_ru.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++ README_zh_Hans.md | 2 +- 10 files changed, 193 insertions(+), 7 deletions(-) create mode 100644 README_id.md create mode 100644 README_nl.md create mode 100644 README_ru.md diff --git a/ALL_README.md b/ALL_README.md index 152f2e7..df3708b 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -5,4 +5,7 @@ - [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) +- [Lees de README in het Nederlands](README_nl.md) +- [Прочитать README на русский](README_ru.md) - [阅读中文(简体)的 README](README_zh_Hans.md) diff --git a/README.md b/README.md index a4f9dbd..16ea625 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Gogs for YunoHost -[![Integration level](https://dash.yunohost.org/integration/gogs.svg)](https://dash.yunohost.org/appci/app/gogs) ![Working status](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Working status](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) [![Install Gogs with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_es.md b/README_es.md index 39ebb33..88e1461 100644 --- a/README_es.md +++ b/README_es.md @@ -5,7 +5,7 @@ No se debe editar a mano. # Gogs para Yunohost -[![Nivel de integración](https://dash.yunohost.org/integration/gogs.svg)](https://dash.yunohost.org/appci/app/gogs) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Nivel de integración](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) [![Instalar Gogs con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) @@ -48,7 +48,7 @@ Gogs (Go Git Service) is a git-based multiplatform forge written in Go. Its part ## Información para desarrolladores -Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/gogs_ynh/tree/testing +Por favor enviar sus correcciones a la [rama `testing`](https://github.com/YunoHost-Apps/gogs_ynh/tree/testing). Para probar la rama `testing`, sigue asÍ: diff --git a/README_eu.md b/README_eu.md index 248ff9e..ac20582 100644 --- a/README_eu.md +++ b/README_eu.md @@ -5,7 +5,7 @@ EZ editatu eskuz. # Gogs YunoHost-erako -[![Integrazio maila](https://dash.yunohost.org/integration/gogs.svg)](https://dash.yunohost.org/appci/app/gogs) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Integrazio maila](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) [![Instalatu Gogs YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_fr.md b/README_fr.md index 51da64b..02b4de9 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main. # Gogs pour YunoHost -[![Niveau d’intégration](https://dash.yunohost.org/integration/gogs.svg)](https://dash.yunohost.org/appci/app/gogs) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) [![Installer Gogs avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_gl.md b/README_gl.md index a023aba..b69fcd3 100644 --- a/README_gl.md +++ b/README_gl.md @@ -5,7 +5,7 @@ NON debe editarse manualmente. # Gogs para YunoHost -[![Nivel de integración](https://dash.yunohost.org/integration/gogs.svg)](https://dash.yunohost.org/appci/app/gogs) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Nivel de integración](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) [![Instalar Gogs con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_id.md b/README_id.md new file mode 100644 index 0000000..d7d760d --- /dev/null +++ b/README_id.md @@ -0,0 +1,61 @@ + + +# Gogs untuk YunoHost + +[![Tingkat integrasi](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Status kerja](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Status pemeliharaan](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) + +[![Pasang Gogs dengan YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) + +*[Baca README ini dengan bahasa yang lain.](./ALL_README.md)* + +> *Paket ini memperbolehkan Anda untuk memasang Gogs 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 + +Gogs (Go Git Service) is a git-based multiplatform forge written in Go. Its particularity is that it is light and can run on an ARM card, which makes it suitable for self-hosting. Gogs has a web interface similar to that of GitHub. + +### Features + +- User dashboard, user profile and activity timeline. +- Repository and organization webhooks, including Slack, Discord and Dingtalk. +- Repository Git hooks, deploy keys and Git LFS. +- Repository issues, pull requests, wiki, protected branches and collaboration. +- Migrate and mirror repositories with wiki from other code hosts. +- Web editor for quick editing repository files and wiki. +- Jupyter Notebook and PDF rendering. +- Authentication via SMTP, LDAP. + + +**Versi terkirim:** 0.13.0~ynh3 + +**Demo:** + +## Tangkapan Layar + +![Tangkapan Layar pada Gogs](./doc/screenshots/screenshot.png) + +## Dokumentasi dan sumber daya + +- Website aplikasi resmi: +- Dokumentasi admin resmi: +- Depot kode aplikasi hulu: +- Gudang YunoHost: +- Laporkan bug: + +## Info developer + +Silakan kirim pull request ke [`testing` branch](https://github.com/YunoHost-Apps/gogs_ynh/tree/testing). + +Untuk mencoba branch `testing`, silakan dilanjutkan seperti: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/gogs_ynh/tree/testing --debug +atau +sudo yunohost app upgrade gogs -u https://github.com/YunoHost-Apps/gogs_ynh/tree/testing --debug +``` + +**Info lebih lanjut mengenai pemaketan aplikasi:** diff --git a/README_nl.md b/README_nl.md new file mode 100644 index 0000000..d0aa517 --- /dev/null +++ b/README_nl.md @@ -0,0 +1,61 @@ + + +# Gogs voor Yunohost + +[![Integratieniveau](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Mate van functioneren](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Onderhoudsstatus](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) + +[![Gogs met Yunohost installeren](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) + +*[Deze README in een andere taal lezen.](./ALL_README.md)* + +> *Met dit pakket kun je Gogs snel en eenvoudig op een YunoHost-server installeren.* +> *Als je nog geen YunoHost hebt, lees dan [de installatiehandleiding](https://yunohost.org/install), om te zien hoe je 'm installeert.* + +## Overzicht + +Gogs (Go Git Service) is a git-based multiplatform forge written in Go. Its particularity is that it is light and can run on an ARM card, which makes it suitable for self-hosting. Gogs has a web interface similar to that of GitHub. + +### Features + +- User dashboard, user profile and activity timeline. +- Repository and organization webhooks, including Slack, Discord and Dingtalk. +- Repository Git hooks, deploy keys and Git LFS. +- Repository issues, pull requests, wiki, protected branches and collaboration. +- Migrate and mirror repositories with wiki from other code hosts. +- Web editor for quick editing repository files and wiki. +- Jupyter Notebook and PDF rendering. +- Authentication via SMTP, LDAP. + + +**Geleverde versie:** 0.13.0~ynh3 + +**Demo:** + +## Schermafdrukken + +![Schermafdrukken van Gogs](./doc/screenshots/screenshot.png) + +## Documentatie en bronnen + +- Officiele website van de app: +- Officiele beheerdersdocumentatie: +- Upstream app codedepot: +- YunoHost-store: +- Meld een bug: + +## Ontwikkelaarsinformatie + +Stuur je pull request alsjeblieft naar de [`testing`-branch](https://github.com/YunoHost-Apps/gogs_ynh/tree/testing). + +Om de `testing`-branch uit te proberen, ga als volgt te werk: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/gogs_ynh/tree/testing --debug +of +sudo yunohost app upgrade gogs -u https://github.com/YunoHost-Apps/gogs_ynh/tree/testing --debug +``` + +**Verdere informatie over app-packaging:** diff --git a/README_ru.md b/README_ru.md new file mode 100644 index 0000000..a2afc5d --- /dev/null +++ b/README_ru.md @@ -0,0 +1,61 @@ + + +# Gogs для YunoHost + +[![Уровень интеграции](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Состояние работы](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Состояние сопровождения](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) + +[![Установите Gogs с YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) + +*[Прочтите этот README на других языках.](./ALL_README.md)* + +> *Этот пакет позволяет Вам установить Gogs быстро и просто на YunoHost-сервер.* +> *Если у Вас нет YunoHost, пожалуйста, посмотрите [инструкцию](https://yunohost.org/install), чтобы узнать, как установить его.* + +## Обзор + +Gogs (Go Git Service) is a git-based multiplatform forge written in Go. Its particularity is that it is light and can run on an ARM card, which makes it suitable for self-hosting. Gogs has a web interface similar to that of GitHub. + +### Features + +- User dashboard, user profile and activity timeline. +- Repository and organization webhooks, including Slack, Discord and Dingtalk. +- Repository Git hooks, deploy keys and Git LFS. +- Repository issues, pull requests, wiki, protected branches and collaboration. +- Migrate and mirror repositories with wiki from other code hosts. +- Web editor for quick editing repository files and wiki. +- Jupyter Notebook and PDF rendering. +- Authentication via SMTP, LDAP. + + +**Поставляемая версия:** 0.13.0~ynh3 + +**Демо-версия:** + +## Снимки экрана + +![Снимок экрана Gogs](./doc/screenshots/screenshot.png) + +## Документация и ресурсы + +- Официальный веб-сайт приложения: +- Официальная документация администратора: +- Репозиторий кода главной ветки приложения: +- Магазин YunoHost: +- Сообщите об ошибке: + +## Информация для разработчиков + +Пришлите Ваш запрос на слияние в [ветку `testing`](https://github.com/YunoHost-Apps/gogs_ynh/tree/testing). + +Чтобы попробовать ветку `testing`, пожалуйста, сделайте что-то вроде этого: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/gogs_ynh/tree/testing --debug +или +sudo yunohost app upgrade gogs -u https://github.com/YunoHost-Apps/gogs_ynh/tree/testing --debug +``` + +**Больше информации о пакетировании приложений:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index bae68a6..3c2d2cd 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -5,7 +5,7 @@ # YunoHost 上的 Gogs -[![集成程度](https://dash.yunohost.org/integration/gogs.svg)](https://dash.yunohost.org/appci/app/gogs) ![工作状态](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![集成程度](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) [![使用 YunoHost 安装 Gogs](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) From 735d8d2a9d316e42bf332d2d7f9161fedb1dfdb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:41:28 +0200 Subject: [PATCH 3/9] helpers 2.1 --- .gitignore | 3 +++ manifest.toml | 3 ++- scripts/_common.sh | 2 +- scripts/backup | 23 ++++++++++------------- scripts/change_url | 16 ++++++++-------- scripts/install | 33 ++++++++++++++++----------------- scripts/remove | 12 ++++++------ scripts/restore | 39 +++++++++++++++++++-------------------- scripts/upgrade | 29 ++++++++++++++--------------- 9 files changed, 79 insertions(+), 81 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f144f3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +*.sw[op] +.DS_Store diff --git a/manifest.toml b/manifest.toml index a8027dd..bd3f41a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,8 @@ admindoc = "https://gogs.io/docs" code = "https://github.com/gogs/gogs" [integration] -yunohost = ">= 11.2" +yunohost = ">= 11.2.18" +helpers_version = "2.1" architectures = "all" multi_instance = true diff --git a/scripts/_common.sh b/scripts/_common.sh index 027c9d7..3d7f008 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,5 +1,5 @@ #!/bin/bash #================================================= -# COMMON VARIABLES +# COMMON VARIABLES AND CUSTOM HELPERS #================================================= diff --git a/scripts/backup b/scripts/backup index 357f59a..65d74ce 100644 --- a/scripts/backup +++ b/scripts/backup @@ -3,44 +3,41 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers -#================================================= -# DECLARE DATA AND CONF FILES TO BACKUP -#================================================= -ynh_print_info --message="Declaring files to be backed up..." +ynh_print_info "Declaring files to be backed up..." #================================================= # BACKUP THE APP MAIN DIR #================================================= -ynh_backup --src_path="$install_dir" +ynh_backup "$install_dir" #================================================= # BACKUP THE DATA DIR #================================================= -ynh_backup --src_path="$data_dir" --is_big +ynh_backup "$data_dir" #================================================= # BACKUP THE NGINX CONFIGURATION #================================================= -ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" +ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" -ynh_backup --src_path="/etc/logrotate.d/$app" +ynh_backup "/etc/logrotate.d/$app" -ynh_backup --src_path="/etc/systemd/system/$app.service" +ynh_backup "/etc/systemd/system/$app.service" -ynh_backup --src_path="/var/log/$app" +ynh_backup "/var/log/$app" #================================================= # BACKUP THE MYSQL DATABASE #================================================= -ynh_print_info --message="Backing up the MySQL database..." +ynh_print_info "Backing up the MySQL database..." -ynh_mysql_dump_db --database="$db_name" > db.sql +ynh_mysql_dump_db > db.sql #================================================= # END OF SCRIPT #================================================= -ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." +ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/change_url b/scripts/change_url index 29e74bc..81fc40e 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -6,16 +6,16 @@ source /usr/share/yunohost/helpers #================================================= # STOP SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Stopping a systemd service..." --weight=2 +ynh_script_progression "Stopping $app's systemd service..." -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" +ynh_systemctl --service=$app --action="stop" --log_path="systemd" #================================================= # MODIFY URL IN NGINX CONF #================================================= -ynh_script_progression --message="Updating NGINX web server configuration..." --weight=3 +ynh_script_progression "Updating NGINX web server configuration..." -ynh_change_url_nginx_config +ynh_config_change_url_nginx #================================================= # SPECIFIC MODIFICATIONS @@ -30,7 +30,7 @@ fi domain=$new_domain -ynh_add_config --template="../conf/app.ini" --destination="$install_dir/custom/conf/app.ini" +ynh_config_add --template="app.ini" --destination="$install_dir/custom/conf/app.ini" chmod 400 "$install_dir/custom/conf/app.ini" chown $app:$app "$install_dir/custom/conf/app.ini" @@ -38,12 +38,12 @@ chown $app:$app "$install_dir/custom/conf/app.ini" #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." --weight=2 +ynh_script_progression "Starting $app's systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +ynh_systemctl --service=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT #================================================= -ynh_script_progression --message="Change of URL completed for $app" --last +ynh_script_progression "Change of URL completed for $app" diff --git a/scripts/install b/scripts/install index 2ab316f..c0dbe10 100644 --- a/scripts/install +++ b/scripts/install @@ -8,24 +8,23 @@ source /usr/share/yunohost/helpers #================================================= key=$(ynh_string_random) -ynh_app_setting_set --app=$app --key=key --value=$key +ynh_app_setting_set --key=key --value=$key #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -ynh_script_progression --message="Setting up source files..." --weight=3 +ynh_script_progression "Setting up source files..." ynh_setup_source --dest_dir=$install_dir mkdir -p "$install_dir/custom/conf/auth.d" -chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" - +#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" +#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" #================================================= # ADD A CONFIGURATION #================================================= -ynh_script_progression --message="Adding a configuration file..." --weight=1 +ynh_script_progression "Adding $app's configuration..." if [ "$path" = "/" ] then @@ -34,38 +33,38 @@ else url="$domain${path%/}" fi -ynh_add_config --template="app.ini" --destination="$install_dir/custom/conf/app.ini" +ynh_config_add --template="app.ini" --destination="$install_dir/custom/conf/app.ini" chmod 400 "$install_dir/custom/conf/app.ini" chown $app:$app "$install_dir/custom/conf/app.ini" -ynh_add_config --template="ldap.conf" --destination="$install_dir/custom/conf/auth.d/ldap.conf" +ynh_config_add --template="ldap.conf" --destination="$install_dir/custom/conf/auth.d/ldap.conf" #================================================= # SETUP SYSTEMD #================================================= -ynh_script_progression --message="Configuring a systemd service..." --weight=1 +ynh_script_progression "Configuring $app's systemd service..." -ynh_add_systemd_config +ynh_config_add_systemd -ynh_add_nginx_config +ynh_config_add_nginx -ynh_use_logrotate +ynh_config_add_logrotate -chown -R $app:$app "/var/log/$app" -chmod u=rwX,g=rX,o= "/var/log/$app" +#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "/var/log/$app" +#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=rwX,g=rX,o= "/var/log/$app" yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." --weight=3 +ynh_script_progression "Starting $app's systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +ynh_systemctl --service=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of $app completed" --last +ynh_script_progression "Installation of $app completed" diff --git a/scripts/remove b/scripts/remove index 157207e..7a83e1a 100644 --- a/scripts/remove +++ b/scripts/remove @@ -6,20 +6,20 @@ source /usr/share/yunohost/helpers #================================================= # REMOVE SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 +ynh_script_progression "Removing system configurations related to $app..." -if ynh_exec_warn_less yunohost service status $app >/dev/null; then +if ynh_hide_warnings yunohost service status $app >/dev/null; then yunohost service remove $app fi -ynh_remove_systemd_config +ynh_config_remove_systemd -ynh_remove_logrotate +ynh_config_remove_logrotate -ynh_remove_nginx_config +ynh_config_remove_nginx #================================================= # END OF SCRIPT #================================================= -ynh_script_progression --message="Removal of $app completed" --last +ynh_script_progression "Removal of $app completed" diff --git a/scripts/restore b/scripts/restore index ab75192..a84108f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -6,58 +6,57 @@ source /usr/share/yunohost/helpers #================================================= # RESTORE THE APP MAIN DIR #================================================= -ynh_script_progression --message="Restoring $app main directory..." --weight=10 +ynh_script_progression "Restoring $app main directory..." -ynh_restore_file --origin_path="$install_dir" - -chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" +ynh_restore "$install_dir" +#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" +#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" #================================================= # RESTORE THE DATA DIRECTORY #================================================= -ynh_script_progression --message="Restoring the data directory..." --weight=1 +ynh_script_progression "Restoring the data directory..." -ynh_restore_file --origin_path="$data_dir" --not_mandatory +ynh_restore "$data_dir" chown -R $app:www-data "$data_dir" #================================================= # RESTORE THE MYSQL DATABASE #================================================= -ynh_script_progression --message="Restoring the MySQL database..." --weight=3 +ynh_script_progression "Restoring the MySQL database..." -ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql +ynh_mysql_db_shell < ./db.sql #================================================= # RESTORE SYSTEMD #================================================= -ynh_script_progression --message="Restoring the systemd configuration..." --weight=5 +ynh_script_progression "Restoring $app's systemd service..." -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf" -ynh_restore_file --origin_path="/etc/systemd/system/$app.service" +ynh_restore "/etc/systemd/system/$app.service" systemctl enable $app.service --quiet -ynh_restore_file --origin_path="/etc/logrotate.d/$app" +ynh_restore "/etc/logrotate.d/$app" -ynh_restore_file --origin_path="/var/log/$app" -chown -R $app:$app "/var/log/$app" -chmod u=rwX,g=rX,o= "/var/log/$app" +ynh_restore "/var/log/$app" +#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "/var/log/$app" +#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=rwX,g=rX,o= "/var/log/$app" yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1 +ynh_script_progression "Reloading NGINX web server and $app's service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +ynh_systemctl --service=$app --action="start" --log_path="systemd" -ynh_systemd_action --service_name=nginx --action=reload +ynh_systemctl --service=nginx --action=reload #================================================= # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for $app" --last +ynh_script_progression "Restoration completed for $app" diff --git a/scripts/upgrade b/scripts/upgrade index a8dd79a..21b5975 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -6,45 +6,44 @@ source /usr/share/yunohost/helpers #================================================= # STOP SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Stopping a systemd service..." --weight=2 +ynh_script_progression "Stopping $app's systemd service..." -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" +ynh_systemctl --service=$app --action="stop" --log_path="systemd" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -ynh_script_progression --message="Setting up source files..." --weight=3 +ynh_script_progression "Setting up source files..." ynh_setup_source --dest_dir=$install_dir --keep="custom/conf/app.ini custom/conf/auth.d/ldap.conf" -chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" - +#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" +#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1 +ynh_script_progression "Restoring system configurations related to $app..." -ynh_add_systemd_config +ynh_config_add_systemd -ynh_add_nginx_config +ynh_config_add_nginx -ynh_use_logrotate +ynh_config_add_logrotate -chown -R $app:$app "/var/log/$app" -chmod u=rwX,g=rX,o= "/var/log/$app" +#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "/var/log/$app" +#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=rwX,g=rX,o= "/var/log/$app" yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." --weight=1 +ynh_script_progression "Starting $app's systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +ynh_systemctl --service=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT #================================================= -ynh_script_progression --message="Upgrade of $app completed" --last +ynh_script_progression "Upgrade of $app completed" From 783bc754d5a7ce49f4ba69670ddafc3f5bdc9168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:42:38 +0200 Subject: [PATCH 4/9] cleaning --- manifest.toml | 2 +- scripts/install | 5 ----- scripts/restore | 4 ---- scripts/upgrade | 5 ----- 4 files changed, 1 insertion(+), 15 deletions(-) diff --git a/manifest.toml b/manifest.toml index bd3f41a..fcd1962 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ admindoc = "https://gogs.io/docs" code = "https://github.com/gogs/gogs" [integration] -yunohost = ">= 11.2.18" +yunohost = ">= 11.2.30" helpers_version = "2.1" architectures = "all" multi_instance = true diff --git a/scripts/install b/scripts/install index c0dbe10..dff2e28 100644 --- a/scripts/install +++ b/scripts/install @@ -19,8 +19,6 @@ ynh_setup_source --dest_dir=$install_dir mkdir -p "$install_dir/custom/conf/auth.d" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" #================================================= # ADD A CONFIGURATION #================================================= @@ -51,9 +49,6 @@ ynh_config_add_nginx ynh_config_add_logrotate -#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "/var/log/$app" -#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=rwX,g=rX,o= "/var/log/$app" - yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log" #================================================= diff --git a/scripts/restore b/scripts/restore index a84108f..21adc85 100644 --- a/scripts/restore +++ b/scripts/restore @@ -10,8 +10,6 @@ ynh_script_progression "Restoring $app main directory..." ynh_restore "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" #================================================= # RESTORE THE DATA DIRECTORY #================================================= @@ -41,8 +39,6 @@ systemctl enable $app.service --quiet ynh_restore "/etc/logrotate.d/$app" ynh_restore "/var/log/$app" -#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "/var/log/$app" -#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=rwX,g=rX,o= "/var/log/$app" yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log" diff --git a/scripts/upgrade b/scripts/upgrade index 21b5975..2ecfe56 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,8 +17,6 @@ ynh_script_progression "Setting up source files..." ynh_setup_source --dest_dir=$install_dir --keep="custom/conf/app.ini custom/conf/auth.d/ldap.conf" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= @@ -30,9 +28,6 @@ ynh_config_add_nginx ynh_config_add_logrotate -#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "/var/log/$app" -#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=rwX,g=rX,o= "/var/log/$app" - yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log" #================================================= From 52e99aef253361bbe918a98124cd49123305c471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:13:34 +0200 Subject: [PATCH 5/9] fix --- scripts/install | 3 --- scripts/restore | 2 -- 2 files changed, 5 deletions(-) diff --git a/scripts/install b/scripts/install index dff2e28..844249e 100644 --- a/scripts/install +++ b/scripts/install @@ -33,9 +33,6 @@ fi ynh_config_add --template="app.ini" --destination="$install_dir/custom/conf/app.ini" -chmod 400 "$install_dir/custom/conf/app.ini" -chown $app:$app "$install_dir/custom/conf/app.ini" - ynh_config_add --template="ldap.conf" --destination="$install_dir/custom/conf/auth.d/ldap.conf" #================================================= diff --git a/scripts/restore b/scripts/restore index 21adc85..9235861 100644 --- a/scripts/restore +++ b/scripts/restore @@ -17,8 +17,6 @@ ynh_script_progression "Restoring the data directory..." ynh_restore "$data_dir" -chown -R $app:www-data "$data_dir" - #================================================= # RESTORE THE MYSQL DATABASE #================================================= From de572b6c01025a0501b008abaaf383e009836500 Mon Sep 17 00:00:00 2001 From: eric_G <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 23 Dec 2024 09:23:09 +0100 Subject: [PATCH 6/9] Update manifest.toml --- manifest.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index fcd1962..b87c9e4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,13 +17,12 @@ admindoc = "https://gogs.io/docs" code = "https://github.com/gogs/gogs" [integration] -yunohost = ">= 11.2.30" +yunohost = ">= 12.0.9" helpers_version = "2.1" architectures = "all" multi_instance = true ldap = true - sso = true disk = "50M" From 032227a632798f9057af48d2e3507c87ddea2b55 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 23 Dec 2024 09:23:13 +0100 Subject: [PATCH 7/9] Auto-update READMEs --- ALL_README.md | 1 + README.md | 4 ++- README_es.md | 4 ++- README_eu.md | 4 ++- README_fr.md | 4 ++- README_gl.md | 4 ++- README_id.md | 4 ++- README_nl.md | 4 ++- README_pl.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++ README_ru.md | 4 ++- README_zh_Hans.md | 4 ++- 11 files changed, 91 insertions(+), 9 deletions(-) create mode 100644 README_pl.md diff --git a/ALL_README.md b/ALL_README.md index df3708b..c93d620 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -7,5 +7,6 @@ - [Le o README en galego](README_gl.md) - [Baca README dalam bahasa bahasa Indonesia](README_id.md) - [Lees de README in het Nederlands](README_nl.md) +- [Przeczytaj README w języku polski](README_pl.md) - [Прочитать README на русский](README_ru.md) - [阅读中文(简体)的 README](README_zh_Hans.md) diff --git a/README.md b/README.md index 16ea625..32ddc55 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,9 @@ It shall NOT be edited by hand. # Gogs for YunoHost -[![Integration level](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Working status](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Integration level](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Working status](https://apps.yunohost.org/badge/state/gogs) +![Maintenance status](https://apps.yunohost.org/badge/maintained/gogs) [![Install Gogs with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_es.md b/README_es.md index 88e1461..0bee333 100644 --- a/README_es.md +++ b/README_es.md @@ -5,7 +5,9 @@ No se debe editar a mano. # Gogs para Yunohost -[![Nivel de integración](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Nivel de integración](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Estado funcional](https://apps.yunohost.org/badge/state/gogs) +![Estado En Mantención](https://apps.yunohost.org/badge/maintained/gogs) [![Instalar Gogs con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_eu.md b/README_eu.md index ac20582..91a33c7 100644 --- a/README_eu.md +++ b/README_eu.md @@ -5,7 +5,9 @@ EZ editatu eskuz. # Gogs YunoHost-erako -[![Integrazio maila](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Integrazio maila](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Funtzionamendu egoera](https://apps.yunohost.org/badge/state/gogs) +![Mantentze egoera](https://apps.yunohost.org/badge/maintained/gogs) [![Instalatu Gogs YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_fr.md b/README_fr.md index 02b4de9..61c2289 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,7 +5,9 @@ Il NE doit PAS être modifié à la main. # Gogs pour YunoHost -[![Niveau d’intégration](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Niveau d’intégration](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Statut du fonctionnement](https://apps.yunohost.org/badge/state/gogs) +![Statut de maintenance](https://apps.yunohost.org/badge/maintained/gogs) [![Installer Gogs avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_gl.md b/README_gl.md index b69fcd3..c3b7e11 100644 --- a/README_gl.md +++ b/README_gl.md @@ -5,7 +5,9 @@ NON debe editarse manualmente. # Gogs para YunoHost -[![Nivel de integración](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Nivel de integración](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Estado de funcionamento](https://apps.yunohost.org/badge/state/gogs) +![Estado de mantemento](https://apps.yunohost.org/badge/maintained/gogs) [![Instalar Gogs con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_id.md b/README_id.md index d7d760d..d1afb1a 100644 --- a/README_id.md +++ b/README_id.md @@ -5,7 +5,9 @@ Ini TIDAK boleh diedit dengan tangan. # Gogs untuk YunoHost -[![Tingkat integrasi](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Status kerja](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Status pemeliharaan](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Tingkat integrasi](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Status kerja](https://apps.yunohost.org/badge/state/gogs) +![Status pemeliharaan](https://apps.yunohost.org/badge/maintained/gogs) [![Pasang Gogs dengan YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_nl.md b/README_nl.md index d0aa517..5f61a7e 100644 --- a/README_nl.md +++ b/README_nl.md @@ -5,7 +5,9 @@ Hij mag NIET handmatig aangepast worden. # Gogs voor Yunohost -[![Integratieniveau](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Mate van functioneren](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Onderhoudsstatus](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Integratieniveau](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Mate van functioneren](https://apps.yunohost.org/badge/state/gogs) +![Onderhoudsstatus](https://apps.yunohost.org/badge/maintained/gogs) [![Gogs met Yunohost installeren](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_pl.md b/README_pl.md new file mode 100644 index 0000000..b17d519 --- /dev/null +++ b/README_pl.md @@ -0,0 +1,63 @@ + + +# Gogs dla YunoHost + +[![Poziom integracji](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Status działania](https://apps.yunohost.org/badge/state/gogs) +![Status utrzymania](https://apps.yunohost.org/badge/maintained/gogs) + +[![Zainstaluj Gogs z YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) + +*[Przeczytaj plik README w innym języku.](./ALL_README.md)* + +> *Ta aplikacja pozwala na szybką i prostą instalację Gogs na serwerze YunoHost.* +> *Jeżeli nie masz YunoHost zapoznaj się z [poradnikiem](https://yunohost.org/install) instalacji.* + +## Przegląd + +Gogs (Go Git Service) is a git-based multiplatform forge written in Go. Its particularity is that it is light and can run on an ARM card, which makes it suitable for self-hosting. Gogs has a web interface similar to that of GitHub. + +### Features + +- User dashboard, user profile and activity timeline. +- Repository and organization webhooks, including Slack, Discord and Dingtalk. +- Repository Git hooks, deploy keys and Git LFS. +- Repository issues, pull requests, wiki, protected branches and collaboration. +- Migrate and mirror repositories with wiki from other code hosts. +- Web editor for quick editing repository files and wiki. +- Jupyter Notebook and PDF rendering. +- Authentication via SMTP, LDAP. + + +**Dostarczona wersja:** 0.13.0~ynh3 + +**Demo:** + +## Zrzuty ekranu + +![Zrzut ekranu z Gogs](./doc/screenshots/screenshot.png) + +## Dokumentacja i zasoby + +- Oficjalna strona aplikacji: +- Oficjalna dokumentacja dla administratora: +- Repozytorium z kodem źródłowym: +- Sklep YunoHost: +- Zgłaszanie błędów: + +## Informacje od twórców + +Wyślij swój pull request do [gałęzi `testing`](https://github.com/YunoHost-Apps/gogs_ynh/tree/testing). + +Aby wypróbować gałąź `testing` postępuj zgodnie z instrukcjami: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/gogs_ynh/tree/testing --debug +lub +sudo yunohost app upgrade gogs -u https://github.com/YunoHost-Apps/gogs_ynh/tree/testing --debug +``` + +**Więcej informacji o tworzeniu paczek aplikacji:** diff --git a/README_ru.md b/README_ru.md index a2afc5d..26e1a7b 100644 --- a/README_ru.md +++ b/README_ru.md @@ -5,7 +5,9 @@ # Gogs для YunoHost -[![Уровень интеграции](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![Состояние работы](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![Состояние сопровождения](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![Уровень интеграции](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![Состояние работы](https://apps.yunohost.org/badge/state/gogs) +![Состояние сопровождения](https://apps.yunohost.org/badge/maintained/gogs) [![Установите Gogs с YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 3c2d2cd..c0b931b 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -5,7 +5,9 @@ # YunoHost 上的 Gogs -[![集成程度](https://dash.yunohost.org/integration/gogs.svg)](https://ci-apps.yunohost.org/ci/apps/gogs/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/gogs.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/gogs.maintain.svg) +[![集成程度](https://apps.yunohost.org/badge/integration/gogs)](https://ci-apps.yunohost.org/ci/apps/gogs/) +![工作状态](https://apps.yunohost.org/badge/state/gogs) +![维护状态](https://apps.yunohost.org/badge/maintained/gogs) [![使用 YunoHost 安装 Gogs](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gogs) From e91bbfa2f2981a222ce5af427ddfd9284eddbce2 Mon Sep 17 00:00:00 2001 From: eric_G <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 27 Jan 2025 19:19:59 +0100 Subject: [PATCH 8/9] cleaning --- conf/app.ini | 2 +- conf/nginx.conf | 3 --- scripts/change_url | 12 ------------ scripts/install | 7 ------- 4 files changed, 1 insertion(+), 23 deletions(-) diff --git a/conf/app.ini b/conf/app.ini index 9378a20..8fa0298 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -10,7 +10,7 @@ RUN_MODE = prod [server] ; The public-facing URL for the application. -EXTERNAL_URL = https://__URL__/ +EXTERNAL_URL = https://__DOMAIN____PATH__/ ; The public-facing domain name for the application. DOMAIN = __DOMAIN__ ; The protocol that is used to serve direct traffic to the application. diff --git a/conf/nginx.conf b/conf/nginx.conf index 8c9a26a..bba1b9d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,7 +7,4 @@ location __PATH__/ { fastcgi_param REMOTE_USER $remote_user; client_max_body_size 200M; proxy_set_header X-Real-IP $remote_addr; - - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; } diff --git a/scripts/change_url b/scripts/change_url index 81fc40e..b8dabc2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -21,20 +21,8 @@ ynh_config_change_url_nginx # SPECIFIC MODIFICATIONS #================================================= -if [ "$path_url" = "/" ] -then - url="$new_domain" -else - url="$new_domain${new_path%/}" -fi - -domain=$new_domain - ynh_config_add --template="app.ini" --destination="$install_dir/custom/conf/app.ini" -chmod 400 "$install_dir/custom/conf/app.ini" -chown $app:$app "$install_dir/custom/conf/app.ini" - #================================================= # START SYSTEMD SERVICE #================================================= diff --git a/scripts/install b/scripts/install index 844249e..be5f721 100644 --- a/scripts/install +++ b/scripts/install @@ -24,13 +24,6 @@ mkdir -p "$install_dir/custom/conf/auth.d" #================================================= ynh_script_progression "Adding $app's configuration..." -if [ "$path" = "/" ] -then - url="$domain" -else - url="$domain${path%/}" -fi - ynh_config_add --template="app.ini" --destination="$install_dir/custom/conf/app.ini" ynh_config_add --template="ldap.conf" --destination="$install_dir/custom/conf/auth.d/ldap.conf" From 60c07aa136bdae541b9f74783a0af497578ab6c4 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 27 Jan 2025 19:22:51 +0100 Subject: [PATCH 9/9] Auto-update READMEs --- README_id.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README_id.md b/README_id.md index 3c47280..aa8472a 100644 --- a/README_id.md +++ b/README_id.md @@ -34,7 +34,6 @@ Gogs (Go Git Service) is a git-based multiplatform forge written in Go. Its part **Versi terkirim:** 0.13.2~ynh1 - **Demo:** ## Tangkapan Layar