1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borgwarehouse_ynh.git synced 2024-09-03 18:16:17 +02:00

Merge pull request #14 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-05-09 16:37:37 +02:00 committed by GitHub
commit ca1eb2abf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 238 additions and 92 deletions

7
ALL_README.md Normal file
View file

@ -0,0 +1,7 @@
# All available README files by language
- [Read the README in English](README.md)
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)
- [阅读中文(简体)的 README](README_zh_Hans.md)

View file

@ -1,5 +1,5 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/readme_generator
N.B.: This README was automatically generated by <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
It shall NOT be edited by hand.
-->
@ -9,17 +9,17 @@ It shall NOT be edited by hand.
[![Install BorgWarehouse with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=borgwarehouse)
*[Lire ce readme en français.](./README_fr.md)*
*[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install BorgWarehouse quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
> *This package allows you to install BorgWarehouse quickly and simply on a YunoHost server.*
> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
## Overview
BorgWarhouse is a fast and modern WebUI for a BorgBackup's central repository server.
**Shipped version:** 2.2.0~ynh1
**Shipped version:** 2.2.1~ynh1
## Screenshots
@ -27,22 +27,22 @@ BorgWarhouse is a fast and modern WebUI for a BorgBackup's central repository se
## Documentation and resources
* Official app website: <https://borgwarehouse.com/>
* Official admin documentation: <https://borgwarehouse.com/docs/admin-manual/debian-installation/>
* Upstream app code repository: <https://github.com/ravinou/borgwarehouse>
* YunoHost Store: <https://apps.yunohost.org/app/borgwarehouse>
* Report a bug: <https://github.com/YunoHost-Apps/borgwarehouse_ynh/issues>
- Official app website: <https://borgwarehouse.com/>
- Official admin documentation: <https://borgwarehouse.com/docs/admin-manual/debian-installation/>
- Upstream app code repository: <https://github.com/ravinou/borgwarehouse>
- YunoHost Store: <https://apps.yunohost.org/app/borgwarehouse>
- Report a bug: <https://github.com/YunoHost-Apps/borgwarehouse_ynh/issues>
## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing).
Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing).
To try the testing branch, please proceed like that.
To try the `testing` branch, please proceed like that:
``` bash
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
or
sudo yunohost app upgrade borgwarehouse -u https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
```
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>

48
README_eu.md Normal file
View file

@ -0,0 +1,48 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# BorgWarehouse YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/borgwarehouse.svg)](https://dash.yunohost.org/appci/app/borgwarehouse) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/borgwarehouse.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/borgwarehouse.maintain.svg)
[![Instalatu BorgWarehouse YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=borgwarehouse)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek BorgWarehouse YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
BorgWarhouse is a fast and modern WebUI for a BorgBackup's central repository server.
**Paketatutako bertsioa:** 2.2.1~ynh1
## Pantaila-argazkiak
![BorgWarehouse(r)en pantaila-argazkia](./doc/screenshots/screenshot.png)
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://borgwarehouse.com/>
- Administratzaileen dokumentazio ofiziala: <https://borgwarehouse.com/docs/admin-manual/debian-installation/>
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/ravinou/borgwarehouse>
- YunoHost Denda: <https://apps.yunohost.org/app/borgwarehouse>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/borgwarehouse_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
edo
sudo yunohost app upgrade borgwarehouse -u https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
```
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>

View file

@ -1,6 +1,6 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/readme_generator
It shall NOT be edited by hand.
Nota bene: ce README est automatiquement généré par <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
Il NE doit PAS être modifié à la main.
-->
# BorgWarehouse pour YunoHost
@ -9,16 +9,16 @@ It shall NOT be edited by hand.
[![Installer BorgWarehouse avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=borgwarehouse)
*[Read this readme in english.](./README.md)*
*[Lire le README dans d'autres langues.](./ALL_README.md)*
> *Ce package vous permet dinstaller BorgWarehouse rapidement et simplement sur un serveur YunoHost.
Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
> *Ce package vous permet dinstaller BorgWarehouse rapidement et simplement sur un serveur YunoHost.*
> *Si vous navez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment linstaller et en profiter.*
## Vue densemble
BorgWarhouse est une interface Web rapide et moderne pour BorgBackup.
**Version incluse :** 2.2.0~ynh1
**Version incluse:** 2.2.1~ynh1
## Captures décran
@ -26,22 +26,22 @@ BorgWarhouse est une interface Web rapide et moderne pour BorgBackup.
## Documentations et ressources
* Site officiel de lapp : <https://borgwarehouse.com/>
* Documentation officielle de ladmin : <https://borgwarehouse.com/docs/admin-manual/debian-installation/>
* Dépôt de code officiel de lapp : <https://github.com/ravinou/borgwarehouse>
* YunoHost Store: <https://apps.yunohost.org/app/borgwarehouse>
* Signaler un bug : <https://github.com/YunoHost-Apps/borgwarehouse_ynh/issues>
- Site officiel de lapp: <https://borgwarehouse.com/>
- Documentation officielle de ladmin: <https://borgwarehouse.com/docs/admin-manual/debian-installation/>
- Dépôt de code officiel de lapp: <https://github.com/ravinou/borgwarehouse>
- YunoHost Store: <https://apps.yunohost.org/app/borgwarehouse>
- Signaler un bug: <https://github.com/YunoHost-Apps/borgwarehouse_ynh/issues>
## Informations pour les développeurs
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing).
Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing).
Pour essayer la branche testing, procédez comme suit.
Pour essayer la branche `testing`, procédez comme suit:
``` bash
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
ou
sudo yunohost app upgrade borgwarehouse -u https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
```
**Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps>
**Plus dinfos sur le packaging dapplications:** <https://yunohost.org/packaging_apps>

48
README_gl.md Normal file
View file

@ -0,0 +1,48 @@
<!--
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
NON debe editarse manualmente.
-->
# BorgWarehouse para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/borgwarehouse.svg)](https://dash.yunohost.org/appci/app/borgwarehouse) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/borgwarehouse.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/borgwarehouse.maintain.svg)
[![Instalar BorgWarehouse con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=borgwarehouse)
*[Le este README en outros idiomas.](./ALL_README.md)*
> *Este paquete permíteche instalar BorgWarehouse de xeito rápido e doado nun servidor YunoHost.*
> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.*
## Vista xeral
BorgWarhouse is a fast and modern WebUI for a BorgBackup's central repository server.
**Versión proporcionada:** 2.2.1~ynh1
## Capturas de pantalla
![Captura de pantalla de BorgWarehouse](./doc/screenshots/screenshot.png)
## Documentación e recursos
- Web oficial da app: <https://borgwarehouse.com/>
- Documentación oficial para admin: <https://borgwarehouse.com/docs/admin-manual/debian-installation/>
- Repositorio de orixe do código: <https://github.com/ravinou/borgwarehouse>
- Tenda YunoHost: <https://apps.yunohost.org/app/borgwarehouse>
- Informar dun problema: <https://github.com/YunoHost-Apps/borgwarehouse_ynh/issues>
## Info de desenvolvemento
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing).
Para probar a rama `testing`, procede deste xeito:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
ou
sudo yunohost app upgrade borgwarehouse -u https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
```
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>

48
README_zh_Hans.md Normal file
View file

@ -0,0 +1,48 @@
<!--
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
请勿手动编辑。
-->
# YunoHost 上的 BorgWarehouse
[![集成程度](https://dash.yunohost.org/integration/borgwarehouse.svg)](https://dash.yunohost.org/appci/app/borgwarehouse) ![工作状态](https://ci-apps.yunohost.org/ci/badges/borgwarehouse.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/borgwarehouse.maintain.svg)
[![使用 YunoHost 安装 BorgWarehouse](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=borgwarehouse)
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 BorgWarehouse。*
> *如果您还没有 YunoHost请参阅[指南](https://yunohost.org/install)了解如何安装它。*
## 概况
BorgWarhouse is a fast and modern WebUI for a BorgBackup's central repository server.
**分发版本:** 2.2.1~ynh1
## 截图
![BorgWarehouse 的截图](./doc/screenshots/screenshot.png)
## 文档与资源
- 官方应用网站: <https://borgwarehouse.com/>
- 官方管理文档: <https://borgwarehouse.com/docs/admin-manual/debian-installation/>
- 上游应用代码库: <https://github.com/ravinou/borgwarehouse>
- YunoHost 商店: <https://apps.yunohost.org/app/borgwarehouse>
- 报告 bug <https://github.com/YunoHost-Apps/borgwarehouse_ynh/issues>
## 开发者信息
请向 [`testing` 分支](https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing) 发送拉取请求。
如要尝试 `testing` 分支,请这样操作:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
sudo yunohost app upgrade borgwarehouse -u https://github.com/YunoHost-Apps/borgwarehouse_ynh/tree/testing --debug
```
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>

View file

@ -2,6 +2,10 @@
NEXTAUTH_URL=https://__DOMAIN__
NEXTAUTH_SECRET='__SECRET__'
CRONJOB_KEY='__CRON_KEY__'
# Base directory
home=/home/yunohost.app/__APP__
# Wizard's variables
UNIX_USER=__APP__
FQDN=__DOMAIN__
@ -9,6 +13,7 @@ SSH_SERVER_PORT=__SSH_PORT__
SSH_SERVER_FINGERPRINT_RSA=__RSA_KEY__
SSH_SERVER_FINGERPRINT_ED25519=__ED25519_KEY__
SSH_SERVER_FINGERPRINT_ECDSA=__ECDSA_KEY__
# SMTP's variables
MAIL_SMTP_FROM=borgwarehouse@__MAIN_DOMAIN__
MAIL_SMTP_HOST=__MAIN_DOMAIN__
@ -16,5 +21,6 @@ MAIL_SMTP_PORT=25
MAIL_SMTP_LOGIN=__APP__
MAIL_SMTP_PWD=__MAIL_PWD__
MAIL_REJECT_SELFSIGNED_TLS=true
# Disable NextJS telemetry
NEXT_TELEMETRY_DISABLED=1

View file

@ -7,45 +7,11 @@ After=network.target
Type=simple
User=__APP__
Group=__APP__
Environment="PATH=__ENV_PATH__"
WorkingDirectory=__INSTALL_DIR__/app
Environment="__YNH_NODE_LOAD_PATH__"
WorkingDirectory=/home/yunohost.app/__APP__/app
Environment=PORT=__PORT__
ExecStart=__YNH_NPM__ run start
Restart=on-failure
# Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these
# .. but this should be a good baseline
# Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=yes
RestrictRealtime=yes
DevicePolicy=closed
ProtectClock=yes
ProtectHostname=yes
ProtectProc=invisible
ProtectSystem=full
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
LockPersonality=yes
SystemCallArchitectures=native
SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged
# Denying access to capabilities that should not be relevant for webapps
# Doc: https://man7.org/linux/man-pages/man7/capabilities.7.html
CapabilityBoundingSet=~CAP_RAWIO CAP_MKNOD
CapabilityBoundingSet=~CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE
CapabilityBoundingSet=~CAP_SYS_BOOT CAP_SYS_TIME CAP_SYS_MODULE CAP_SYS_PACCT
CapabilityBoundingSet=~CAP_LEASE CAP_LINUX_IMMUTABLE CAP_IPC_LOCK
CapabilityBoundingSet=~CAP_BLOCK_SUSPEND CAP_WAKE_ALARM
CapabilityBoundingSet=~CAP_SYS_TTY_CONFIG
CapabilityBoundingSet=~CAP_MAC_ADMIN CAP_MAC_OVERRIDE
CapabilityBoundingSet=~CAP_NET_ADMIN CAP_NET_BROADCAST CAP_NET_RAW
CapabilityBoundingSet=~CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_SYSLOG
[Install]
WantedBy=multi-user.target

View file

@ -7,7 +7,7 @@ name = "BorgWarehouse"
description.en = "WebUI for a BorgBackup's central repository server"
description.fr = "WebUI pour BorgBackup"
version = "2.2.0~ynh1"
version = "2.2.1~ynh1"
maintainers = []
@ -43,12 +43,14 @@ ram.runtime = "50M"
[resources.sources]
[resources.sources.main]
url = "https://github.com/ravinou/borgwarehouse/archive/refs/tags/v2.2.0.tar.gz"
sha256 = "ef99c432f6783796446754963c0b4705b2da2dcefc67252a6f36005fcb48243a"
url = "https://github.com/ravinou/borgwarehouse/archive/refs/tags/v2.2.1.tar.gz"
sha256 = "e1e9730691f7b0a787bc1097de09df6a94e230670dd4afaffade2cad26ff4bf2"
autoupdate.strategy = "latest_github_tag"
[resources.system_user]
allow_email = true
allow_ssh = true
home = "/home/yunohost.app/__APP__"
[resources.install_dir]

View file

@ -19,7 +19,14 @@ ynh_print_info --message="Declaring files to be backed up..."
# BACKUP THE APP MAIN DIR
#=================================================
ynh_backup --src_path="$install_dir"
ynh_backup --src_path="/home/yunohost.app/$app/app"
ynh_backup --src_path="/home/yunohost.app/$app/.ssh"
#=================================================
# BACKUP THE REPOS DIRECTORY
#=================================================
ynh_backup --src_path="/home/yunohost.app/$app/repos" --is_big
#=================================================
# BACKUP THE NGINX CONFIGURATION

View file

@ -30,10 +30,10 @@ ynh_change_url_nginx_config
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template=".env" --destination="$install_dir/app/.env.local"
ynh_add_config --template=".env" --destination="/home/yunohost.app/$app/app/.env.local"
chmod 400 "$install_dir/app/.env.local"
chown $app:$app "$install_dir/app/.env.local"
chmod 400 "/home/yunohost.app/$app/app/.env.local"
chown $app:$app "/home/yunohost.app/$app/app/.env.local"
#=================================================
# GENERIC FINALISATION

View file

@ -35,15 +35,21 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=1
mkdir "/home/yunohost.app/$app" && chmod 700 "/home/yunohost.app/$app"
# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir/app"
ynh_setup_source --dest_dir="/home/yunohost.app/$app/app"
mkdir $install_dir/.ssh && chmod 700 $install_dir/.ssh
touch $install_dir/.ssh/authorized_keys && chmod 600 $install_dir/.ssh/authorized_keys
mkdir $install_dir/repos && chmod 700 $install_dir/repos
chmod 700 "/home/yunohost.app/$app"
chown -R $app:www-data "$install_dir"
chmod 700 $install_dir/app/helpers/shells/*
mkdir "/home/yunohost.app/$app/.ssh" && chmod 700 "/home/yunohost.app/$app/.ssh"
touch "/home/yunohost.app/$app/.ssh/authorized_keys" && chmod 600 "/home/yunohost.app/$app/.ssh/authorized_keys"
chmod 700 "/home/yunohost.app/$app/app/helpers/shells/"*
mkdir "/home/yunohost.app/$app/repos" && chmod 700 "/home/yunohost.app/$app/repos"
chown -R $app:www-data "/home/yunohost.app/$app"
#=================================================
# SYSTEM CONFIGURATION
@ -52,10 +58,9 @@ ynh_script_progression --message="Adding system configurations related to $app..
ynh_add_nginx_config
env_path="$PATH"
ynh_add_systemd_config
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
ynh_add_config --template="cron" --destination="/etc/cron.d/$app"
chown root: "/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app"
@ -68,17 +73,17 @@ yunohost service add $app --description="WebUI for BorgBackup" --log="/var/log/$
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template=".env" --destination="$install_dir/app/.env.local"
ynh_add_config --template=".env" --destination="/home/yunohost.app/$app/app/.env.local"
chmod 400 "$install_dir/app/.env.local"
chown $app:$app "$install_dir/app/.env.local"
chmod 400 "/home/yunohost.app/$app/app/.env.local"
chown $app:$app "/home/yunohost.app/$app/app/.env.local"
#=================================================
# INSTALL BORGWARHOUSE
#=================================================
ynh_script_progression --message="Installing $app..." --weight=10
pushd $install_dir/app
pushd /home/yunohost.app/$app/app
ynh_use_nodejs
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm ci
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production $ynh_npm run build

View file

@ -31,6 +31,8 @@ ynh_remove_nodejs
ynh_secure_remove --file="/etc/cron.d/$app"
ynh_secure_remove --file="/home/yunohost.app/$app"
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -15,9 +15,17 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Restoring the app main directory..." --weight=1
ynh_restore_file --origin_path="$install_dir"
mkdir -p "/home/yunohost.app/$app" && chmod 700 "/home/yunohost.app/$app"
chown -R $app:www-data "$install_dir"
ynh_restore_file --origin_path="/home/yunohost.app/$app/app"
ynh_restore_file --origin_path="/home/yunohost.app/$app/.ssh"
ynh_restore_file --origin_path="/home/yunohost.app/$app/repos" --not_mandatory
chmod -R 700 "/home/yunohost.app/$app"
chmod 600 "/home/yunohost.app/$app/.ssh/authorized_keys"
chown -R $app:www-data "/home/yunohost.app/$app"
#=================================================
# REINSTALL DEPENDENCIES

View file

@ -37,10 +37,10 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir" --keep="app/.env.local app/config/users.json app/config/repo.json"
ynh_setup_source --dest_dir="/home/yunohost.app/$app/app" --keep="app/.env.local app/config/users.json app/config/repo.json"
fi
chown -R $app:www-data "$install_dir"
chown -R $app:www-data "/home/yunohost.app/$app/app"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
@ -49,7 +49,6 @@ ynh_script_progression --message="Upgrading system configurations related to $ap
ynh_add_nginx_config
env_path="$PATH"
ynh_add_systemd_config
yunohost service add $app --description="WebUI for BorgBackup" --log="/var/log/$app/$app.log"
@ -61,10 +60,10 @@ yunohost service add $app --description="WebUI for BorgBackup" --log="/var/log/$
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template=".env" --destination="$install_dir/app/.env.local"
ynh_add_config --template=".env" --destination="/home/yunohost.app/$app/app/.env.local"
chmod 400 "$install_dir/app/.env.local"
chown $app:$app "$install_dir/app/.env.local"
chmod 400 "/home/yunohost.app/$app/app/.env.local"
chown $app:$app "/home/yunohost.app/$app/app/.env.local"
#=================================================
# START SYSTEMD SERVICE