mirror of
https://github.com/YunoHost-Apps/gossa_ynh.git
synced 2024-09-03 18:36:29 +02:00
commit
c06e11c117
16 changed files with 173 additions and 86 deletions
|
@ -5,4 +5,6 @@
|
||||||
- [Irakurri README euskaraz](README_eu.md)
|
- [Irakurri README euskaraz](README_eu.md)
|
||||||
- [Lire le README en français](README_fr.md)
|
- [Lire le README en français](README_fr.md)
|
||||||
- [Le o README en galego](README_gl.md)
|
- [Le o README en galego](README_gl.md)
|
||||||
|
- [Baca README dalam bahasa bahasa Indonesia](README_id.md)
|
||||||
|
- [Прочитать README на русский](README_ru.md)
|
||||||
- [阅读中文(简体)的 README](README_zh_Hans.md)
|
- [阅读中文(简体)的 README](README_zh_Hans.md)
|
||||||
|
|
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Gossa for YunoHost
|
# Gossa for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/gossa)  
|
[](https://ci-apps.yunohost.org/ci/apps/gossa/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=gossa)
|
[](https://install-app.yunohost.org/?app=gossa)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ A fast and simple webserver for your files, that's dependency-free and with unde
|
||||||
✨ PWA enabled
|
✨ PWA enabled
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 1.0.0~ynh1
|
**Shipped version:** 1.1.2~ynh1
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ No se debe editar a mano.
|
||||||
|
|
||||||
# Gossa para Yunohost
|
# Gossa para Yunohost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/gossa)  
|
[](https://ci-apps.yunohost.org/ci/apps/gossa/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=gossa)
|
[](https://install-app.yunohost.org/?app=gossa)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ A fast and simple webserver for your files, that's dependency-free and with unde
|
||||||
✨ PWA enabled
|
✨ PWA enabled
|
||||||
|
|
||||||
|
|
||||||
**Versión actual:** 1.0.0~ynh1
|
**Versión actual:** 1.1.2~ynh1
|
||||||
|
|
||||||
## Capturas
|
## Capturas
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ EZ editatu eskuz.
|
||||||
|
|
||||||
# Gossa YunoHost-erako
|
# Gossa YunoHost-erako
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/gossa)  
|
[](https://ci-apps.yunohost.org/ci/apps/gossa/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=gossa)
|
[](https://install-app.yunohost.org/?app=gossa)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ A fast and simple webserver for your files, that's dependency-free and with unde
|
||||||
✨ PWA enabled
|
✨ PWA enabled
|
||||||
|
|
||||||
|
|
||||||
**Paketatutako bertsioa:** 1.0.0~ynh1
|
**Paketatutako bertsioa:** 1.1.2~ynh1
|
||||||
|
|
||||||
## Pantaila-argazkiak
|
## Pantaila-argazkiak
|
||||||
|
|
||||||
|
|
31
README_fr.md
31
README_fr.md
|
@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
|
||||||
|
|
||||||
# Gossa pour YunoHost
|
# Gossa pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/gossa)  
|
[](https://ci-apps.yunohost.org/ci/apps/gossa/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=gossa)
|
[](https://install-app.yunohost.org/?app=gossa)
|
||||||
|
|
||||||
|
@ -16,24 +16,23 @@ Il NE doit PAS être modifié à la main.
|
||||||
|
|
||||||
## Vue d’ensemble
|
## Vue d’ensemble
|
||||||
|
|
||||||
A fast and simple webserver for your files, that's dependency-free and with under 250 lines of code, easy to review.
|
Un serveur Web rapide et simple pour vos fichiers, sans dépendance et avec moins de 250 lignes de code, facile à réviser.
|
||||||
|
|
||||||
### Features
|
### Fonctionnalités
|
||||||
|
|
||||||
🔍 files/directories browser & handler
|
🔍 navigateur et gestionnaire de fichiers/répertoires
|
||||||
📩 drag-and-drop uploader
|
📩 téléchargeur par glisser-déposer
|
||||||
🥂 fast golang static server
|
🥂 serveur statique golang rapide
|
||||||
💾 90s web UI that prints in milliseconds
|
💾 interface utilisateur Web des années 90 qui imprime en quelques millisecondes
|
||||||
📸 video streaming & picture browser
|
📸 streaming vidéo et navigateur d'images
|
||||||
✍️ simple note editor
|
✍️ éditeur de notes simple
|
||||||
⌨️ keyboard navigation
|
⌨️ navigation au clavier
|
||||||
🚀 lightweight and dependency free codebase
|
🚀 base de code légère et sans dépendance
|
||||||
🔒 >95% test coverage and reproducible builds
|
🔒 >95 % de couverture de test et builds reproductibles
|
||||||
💑 easy multi account setup, read-only mode
|
💑 configuration multi-compte facile, mode lecture seule
|
||||||
✨ PWA enabled
|
✨ PWA activé
|
||||||
|
|
||||||
|
**Version incluse :** 1.1.2~ynh1
|
||||||
**Version incluse :** 1.0.0~ynh1
|
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ NON debe editarse manualmente.
|
||||||
|
|
||||||
# Gossa para YunoHost
|
# Gossa para YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/gossa)  
|
[](https://ci-apps.yunohost.org/ci/apps/gossa/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=gossa)
|
[](https://install-app.yunohost.org/?app=gossa)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ A fast and simple webserver for your files, that's dependency-free and with unde
|
||||||
✨ PWA enabled
|
✨ PWA enabled
|
||||||
|
|
||||||
|
|
||||||
**Versión proporcionada:** 1.0.0~ynh1
|
**Versión proporcionada:** 1.1.2~ynh1
|
||||||
|
|
||||||
## Capturas de pantalla
|
## Capturas de pantalla
|
||||||
|
|
||||||
|
|
60
README_id.md
Normal file
60
README_id.md
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
<!--
|
||||||
|
N.B.: README ini dibuat secara otomatis oleh <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||||
|
Ini TIDAK boleh diedit dengan tangan.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Gossa untuk YunoHost
|
||||||
|
|
||||||
|
[](https://ci-apps.yunohost.org/ci/apps/gossa/)  
|
||||||
|
|
||||||
|
[](https://install-app.yunohost.org/?app=gossa)
|
||||||
|
|
||||||
|
*[Baca README ini dengan bahasa yang lain.](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *Paket ini memperbolehkan Anda untuk memasang Gossa 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
|
||||||
|
|
||||||
|
A fast and simple webserver for your files, that's dependency-free and with under 250 lines of code, easy to review.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
🔍 files/directories browser & handler
|
||||||
|
📩 drag-and-drop uploader
|
||||||
|
🥂 fast golang static server
|
||||||
|
💾 90s web UI that prints in milliseconds
|
||||||
|
📸 video streaming & picture browser
|
||||||
|
✍️ simple note editor
|
||||||
|
⌨️ keyboard navigation
|
||||||
|
🚀 lightweight and dependency free codebase
|
||||||
|
🔒 >95% test coverage and reproducible builds
|
||||||
|
💑 easy multi account setup, read-only mode
|
||||||
|
✨ PWA enabled
|
||||||
|
|
||||||
|
|
||||||
|
**Versi terkirim:** 1.1.2~ynh1
|
||||||
|
|
||||||
|
## Tangkapan Layar
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Dokumentasi dan sumber daya
|
||||||
|
|
||||||
|
- Depot kode aplikasi hulu: <https://github.com/pldubouilh/gossa>
|
||||||
|
- Gudang YunoHost: <https://apps.yunohost.org/app/gossa>
|
||||||
|
- Laporkan bug: <https://github.com/YunoHost-Apps/gossa_ynh/issues>
|
||||||
|
|
||||||
|
## Info developer
|
||||||
|
|
||||||
|
Silakan kirim pull request ke [`testing` branch](https://github.com/YunoHost-Apps/gossa_ynh/tree/testing).
|
||||||
|
|
||||||
|
Untuk mencoba branch `testing`, silakan dilanjutkan seperti:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/gossa_ynh/tree/testing --debug
|
||||||
|
atau
|
||||||
|
sudo yunohost app upgrade gossa -u https://github.com/YunoHost-Apps/gossa_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**Info lebih lanjut mengenai pemaketan aplikasi:** <https://yunohost.org/packaging_apps>
|
60
README_ru.md
Normal file
60
README_ru.md
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
<!--
|
||||||
|
Важно: этот README был автоматически сгенерирован <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||||
|
Он НЕ ДОЛЖЕН редактироваться вручную.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Gossa для YunoHost
|
||||||
|
|
||||||
|
[](https://ci-apps.yunohost.org/ci/apps/gossa/)  
|
||||||
|
|
||||||
|
[](https://install-app.yunohost.org/?app=gossa)
|
||||||
|
|
||||||
|
*[Прочтите этот README на других языках.](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *Этот пакет позволяет Вам установить Gossa быстро и просто на YunoHost-сервер.*
|
||||||
|
> *Если у Вас нет YunoHost, пожалуйста, посмотрите [инструкцию](https://yunohost.org/install), чтобы узнать, как установить его.*
|
||||||
|
|
||||||
|
## Обзор
|
||||||
|
|
||||||
|
A fast and simple webserver for your files, that's dependency-free and with under 250 lines of code, easy to review.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
🔍 files/directories browser & handler
|
||||||
|
📩 drag-and-drop uploader
|
||||||
|
🥂 fast golang static server
|
||||||
|
💾 90s web UI that prints in milliseconds
|
||||||
|
📸 video streaming & picture browser
|
||||||
|
✍️ simple note editor
|
||||||
|
⌨️ keyboard navigation
|
||||||
|
🚀 lightweight and dependency free codebase
|
||||||
|
🔒 >95% test coverage and reproducible builds
|
||||||
|
💑 easy multi account setup, read-only mode
|
||||||
|
✨ PWA enabled
|
||||||
|
|
||||||
|
|
||||||
|
**Поставляемая версия:** 1.1.2~ynh1
|
||||||
|
|
||||||
|
## Снимки экрана
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Документация и ресурсы
|
||||||
|
|
||||||
|
- Репозиторий кода главной ветки приложения: <https://github.com/pldubouilh/gossa>
|
||||||
|
- Магазин YunoHost: <https://apps.yunohost.org/app/gossa>
|
||||||
|
- Сообщите об ошибке: <https://github.com/YunoHost-Apps/gossa_ynh/issues>
|
||||||
|
|
||||||
|
## Информация для разработчиков
|
||||||
|
|
||||||
|
Пришлите Ваш запрос на слияние в [ветку `testing`](https://github.com/YunoHost-Apps/gossa_ynh/tree/testing).
|
||||||
|
|
||||||
|
Чтобы попробовать ветку `testing`, пожалуйста, сделайте что-то вроде этого:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/gossa_ynh/tree/testing --debug
|
||||||
|
или
|
||||||
|
sudo yunohost app upgrade gossa -u https://github.com/YunoHost-Apps/gossa_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**Больше информации о пакетировании приложений:** <https://yunohost.org/packaging_apps>
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# YunoHost 上的 Gossa
|
# YunoHost 上的 Gossa
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/gossa)  
|
[](https://ci-apps.yunohost.org/ci/apps/gossa/)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=gossa)
|
[](https://install-app.yunohost.org/?app=gossa)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ A fast and simple webserver for your files, that's dependency-free and with unde
|
||||||
✨ PWA enabled
|
✨ PWA enabled
|
||||||
|
|
||||||
|
|
||||||
**分发版本:** 1.0.0~ynh1
|
**分发版本:** 1.1.2~ynh1
|
||||||
|
|
||||||
## 截图
|
## 截图
|
||||||
|
|
||||||
|
|
15
doc/DESCRIPTION_fr.md
Executable file
15
doc/DESCRIPTION_fr.md
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
Un serveur Web rapide et simple pour vos fichiers, sans dépendance et avec moins de 250 lignes de code, facile à réviser.
|
||||||
|
|
||||||
|
### Fonctionnalités
|
||||||
|
|
||||||
|
🔍 navigateur et gestionnaire de fichiers/répertoires
|
||||||
|
📩 téléchargeur par glisser-déposer
|
||||||
|
🥂 serveur statique golang rapide
|
||||||
|
💾 interface utilisateur Web des années 90 qui imprime en quelques millisecondes
|
||||||
|
📸 streaming vidéo et navigateur d'images
|
||||||
|
✍️ éditeur de notes simple
|
||||||
|
⌨️ navigation au clavier
|
||||||
|
🚀 base de code légère et sans dépendance
|
||||||
|
🔒 >95 % de couverture de test et builds reproductibles
|
||||||
|
💑 configuration multi-compte facile, mode lecture seule
|
||||||
|
✨ PWA activé
|
|
@ -5,7 +5,7 @@ name = "Gossa"
|
||||||
description.en = "Fast and simple webserver for your files"
|
description.en = "Fast and simple webserver for your files"
|
||||||
description.fr = "Serveur web simple et rapide pour vos fichiers"
|
description.fr = "Serveur web simple et rapide pour vos fichiers"
|
||||||
|
|
||||||
version = "1.0.0~ynh1"
|
version = "1.1.2~ynh1"
|
||||||
|
|
||||||
maintainers = []
|
maintainers = []
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ license = "MIT"
|
||||||
code = "https://github.com/pldubouilh/gossa"
|
code = "https://github.com/pldubouilh/gossa"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2.28"
|
||||||
architectures = ["amd64", "arm64", "armhf"]
|
architectures = ["amd64", "arm64", "armhf"]
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = false
|
ldap = false
|
||||||
|
@ -38,12 +38,12 @@ ram.runtime = "50M"
|
||||||
in_subdir = false
|
in_subdir = false
|
||||||
extract = false
|
extract = false
|
||||||
rename = "gossa"
|
rename = "gossa"
|
||||||
arm64.url = "https://github.com/pldubouilh/gossa/releases/download/v1.0.0/gossa-linux-arm64"
|
arm64.url = "https://github.com/pldubouilh/gossa/releases/download/v1.1.2/gossa-linux-arm64"
|
||||||
arm64.sha256 = "2c1449e5baac8f526b22a8cef0ccf81dc1d6f07bf115da8411a945d3a527db60"
|
arm64.sha256 = "e9beb98337ecc8df95015844cd3677f37265d499790b64e2ac1d56634fe6bc30"
|
||||||
amd64.url = "https://github.com/pldubouilh/gossa/releases/download/v1.0.0/gossa-linux-x64"
|
amd64.url = "https://github.com/pldubouilh/gossa/releases/download/v1.1.2/gossa-linux-x64"
|
||||||
amd64.sha256 = "09673d9e9aee013fd9b3c0c06102111af792e8fca48913c9c60a445efd0dc314"
|
amd64.sha256 = "23a0ae14a59e24d6d652570ff13750be0750e8c491320c76fc49735cd4bb3c69"
|
||||||
armhf.url = "https://github.com/pldubouilh/gossa/releases/download/v1.0.0/gossa-linux-arm"
|
armhf.url = "https://github.com/pldubouilh/gossa/releases/download/v1.1.2/gossa-linux-arm"
|
||||||
armhf.sha256 = "9fc83341f5ebba5f4804b091760b36bbea99fbc055b1cdd7928a34bd2f1f28db"
|
armhf.sha256 = "08d145d8c7c51182ab709059f558416cfd4fc5d0acded8491813056bf62228fa"
|
||||||
|
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
autoupdate.asset.arm64 = "^gossa-linux-arm64$"
|
autoupdate.asset.arm64 = "^gossa-linux-arm64$"
|
||||||
|
|
|
@ -32,10 +32,6 @@ ynh_backup --src_path="$data_dir" --is_big
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BACKUP SYSTEMD
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -26,7 +26,6 @@ chmod +x "$install_dir/gossa"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring NGINX web server..." --weight=3
|
ynh_script_progression --message="Configuring NGINX web server..." --weight=3
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
|
@ -22,15 +22,8 @@ then
|
||||||
yunohost service remove $app
|
yunohost service remove $app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# STOP AND REMOVE SERVICE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1
|
|
||||||
|
|
||||||
# Remove the dedicated systemd config
|
|
||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
|
|
||||||
# Remove the dedicated NGINX config
|
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -36,19 +36,9 @@ ynh_script_progression --message="Restoring the NGINX configuration..." --weight
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE SYSTEMD
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=5
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable $app.service --quiet
|
systemctl enable $app.service --quiet
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
|
||||||
|
|
||||||
yunohost service add $app --description="Webserver for your files" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Webserver for your files" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -58,13 +48,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# GENERIC FINALIZATION
|
|
||||||
#=================================================
|
|
||||||
# RELOAD NGINX
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
|
||||||
|
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
ynh_systemd_action --service_name=nginx --action=reload
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,12 +9,6 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CHECK VERSION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD UPGRADE STEPS
|
# STANDARD UPGRADE STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -27,14 +21,10 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
then
|
ynh_setup_source --dest_dir=$install_dir
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
|
||||||
ynh_setup_source --dest_dir=$install_dir
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
@ -48,19 +38,9 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
|
||||||
# Create a dedicated nginx config
|
# Create a dedicated nginx config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SETUP SYSTEMD
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=2
|
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
|
||||||
|
|
||||||
yunohost service add $app --description="Webserver for your files" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Webserver for your files" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue