Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path #2

Merged
merged 14 commits into from May 9, 2024
1 change: 1 addition & 0 deletions ALL_README.md
Expand Up @@ -4,3 +4,4 @@
- [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)
48 changes: 48 additions & 0 deletions README_zh_Hans.md
@@ -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>
2 changes: 1 addition & 1 deletion conf/systemd.service
Expand Up @@ -7,7 +7,7 @@ After=network.target
Type=simple
User=__APP__
Group=__APP__
Environment="PATH=__ENV_PATH__"
Environment="__YNH_NODE_LOAD_PATH__"
WorkingDirectory=__INSTALL_DIR__/app
Environment=PORT=__PORT__
ExecStart=__YNH_NPM__ run start
Expand Down
9 changes: 5 additions & 4 deletions scripts/install
Expand Up @@ -38,11 +38,13 @@ ynh_script_progression --message="Setting up source files..." --weight=1
# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir/app"

mkdir $install_dir/.ssh && chmod 700 $install_dir/.ssh
touch $install_dir/.ssh/authorized_keys && chmod 600 $install_dir/.ssh/authorized_keys
mkdir /home/$app
mkdir /home/$app/.ssh && chmod 700 /home/$app/.ssh
touch /home/$app/.ssh/authorized_keys && chmod 600 /home/$app/.ssh/authorized_keys

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add these also to script/upgrade

mkdir $install_dir/repos && chmod 700 $install_dir/repos

chown -R $app:www-data "$install_dir"
chown -R $app:www-data "/home/$app"
chmod 700 $install_dir/app/helpers/shells/*

#=================================================
Expand All @@ -52,10 +54,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"

Expand Down
2 changes: 2 additions & 0 deletions scripts/remove
Expand Up @@ -31,6 +31,8 @@ ynh_remove_nodejs

ynh_secure_remove --file="/etc/cron.d/$app"

ynh_secure_remove --file="/home/$app"

#=================================================
# END OF SCRIPT
#=================================================
Expand Down
1 change: 0 additions & 1 deletion scripts/upgrade
Expand Up @@ -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"
Expand Down