mirror of
https://github.com/YunoHost-Apps/paperless-ngx_ynh.git
synced 2024-09-03 19:56:33 +02:00
commit
1ef7d4e0da
13 changed files with 11 additions and 109 deletions
|
@ -33,7 +33,7 @@ Paperless-ngx is a document management system that transforms your physical docu
|
||||||
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 2.11.1~ynh1
|
**Shipped version:** 2.11.3~ynh1
|
||||||
|
|
||||||
**Demo:** <https://demo.paperless-ngx.com/>
|
**Demo:** <https://demo.paperless-ngx.com/>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Paperless-ngx is a document management system that transforms your physical docu
|
||||||
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
||||||
|
|
||||||
|
|
||||||
**Versión actual:** 2.11.1~ynh1
|
**Versión actual:** 2.11.3~ynh1
|
||||||
|
|
||||||
**Demo:** <https://demo.paperless-ngx.com/>
|
**Demo:** <https://demo.paperless-ngx.com/>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Paperless-ngx is a document management system that transforms your physical docu
|
||||||
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
||||||
|
|
||||||
|
|
||||||
**Paketatutako bertsioa:** 2.11.1~ynh1
|
**Paketatutako bertsioa:** 2.11.3~ynh1
|
||||||
|
|
||||||
**Demoa:** <https://demo.paperless-ngx.com/>
|
**Demoa:** <https://demo.paperless-ngx.com/>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Paperless-ngx is a document management system that transforms your physical docu
|
||||||
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 2.11.1~ynh1
|
**Version incluse :** 2.11.3~ynh1
|
||||||
|
|
||||||
**Démo :** <https://demo.paperless-ngx.com/>
|
**Démo :** <https://demo.paperless-ngx.com/>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Paperless-ngx is a document management system that transforms your physical docu
|
||||||
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
||||||
|
|
||||||
|
|
||||||
**Versión proporcionada:** 2.11.1~ynh1
|
**Versión proporcionada:** 2.11.3~ynh1
|
||||||
|
|
||||||
**Demo:** <https://demo.paperless-ngx.com/>
|
**Demo:** <https://demo.paperless-ngx.com/>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Paperless-ngx is a document management system that transforms your physical docu
|
||||||
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
||||||
|
|
||||||
|
|
||||||
**Versi terkirim:** 2.11.1~ynh1
|
**Versi terkirim:** 2.11.3~ynh1
|
||||||
|
|
||||||
**Demo:** <https://demo.paperless-ngx.com/>
|
**Demo:** <https://demo.paperless-ngx.com/>
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ Paperless-ngx is a document management system that transforms your physical docu
|
||||||
- Website aplikasi resmi: <https://paperless-ngx.com>
|
- Website aplikasi resmi: <https://paperless-ngx.com>
|
||||||
- Dokumentasi pengguna resmi: <https://paperless-ngx.readthedocs.io/en/latest/usage_overview.html>
|
- Dokumentasi pengguna resmi: <https://paperless-ngx.readthedocs.io/en/latest/usage_overview.html>
|
||||||
- Dokumentasi admin resmi: <https://paperless-ngx.readthedocs.io/en/latest/index.html>
|
- Dokumentasi admin resmi: <https://paperless-ngx.readthedocs.io/en/latest/index.html>
|
||||||
- Repositori kode aplikasi hulu: <https://github.com/paperless-ngx/paperless-ngx>
|
- Depot kode aplikasi hulu: <https://github.com/paperless-ngx/paperless-ngx>
|
||||||
- Gudang YunoHost: <https://apps.yunohost.org/app/paperless-ngx>
|
- Gudang YunoHost: <https://apps.yunohost.org/app/paperless-ngx>
|
||||||
- Laporkan bug: <https://github.com/YunoHost-Apps/paperless-ngx_ynh/issues>
|
- Laporkan bug: <https://github.com/YunoHost-Apps/paperless-ngx_ynh/issues>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Paperless-ngx is a document management system that transforms your physical docu
|
||||||
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
* [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html).
|
||||||
|
|
||||||
|
|
||||||
**分发版本:** 2.11.1~ynh1
|
**分发版本:** 2.11.3~ynh1
|
||||||
|
|
||||||
**演示:** <https://demo.paperless-ngx.com/>
|
**演示:** <https://demo.paperless-ngx.com/>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Paperless-ngx"
|
||||||
description.en = "Scan, index and archive all your physical documents"
|
description.en = "Scan, index and archive all your physical documents"
|
||||||
description.fr = "Scannez, triez et archivez tous vos documents papiers"
|
description.fr = "Scannez, triez et archivez tous vos documents papiers"
|
||||||
|
|
||||||
version = "2.11.1~ynh1"
|
version = "2.11.3~ynh1"
|
||||||
|
|
||||||
maintainers = ["Tagada"]
|
maintainers = ["Tagada"]
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@ ram.runtime = "350M"
|
||||||
[resources.sources]
|
[resources.sources]
|
||||||
|
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://github.com/paperless-ngx/paperless-ngx/releases/download/v2.11.1/paperless-ngx-v2.11.1.tar.xz"
|
url = "https://github.com/paperless-ngx/paperless-ngx/releases/download/v2.11.3/paperless-ngx-v2.11.3.tar.xz"
|
||||||
sha256 = "0dedc1e9fa742380c2b99aee11bf1f76e20fc8e8fba2c0fb50a11a3742c99a6a"
|
sha256 = "052077e595e94a844a6558365fd56205e5c4037afc23d799fdf0f6aa8a34c275"
|
||||||
|
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
autoupdate.asset = "paperless-ngx-.*.tar.xz"
|
autoupdate.asset = "paperless-ngx-.*.tar.xz"
|
||||||
|
|
|
@ -33,25 +33,8 @@ 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 FAIL2BAN CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
#ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf"
|
|
||||||
#ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf"
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SPECIFIC BACKUP
|
|
||||||
#=================================================
|
|
||||||
# BACKUP LOGROTATE
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/logrotate.d/$app"
|
ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BACKUP SYSTEMD
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app-consumer.service"
|
ynh_backup --src_path="/etc/systemd/system/$app-consumer.service"
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app-scheduler.service"
|
ynh_backup --src_path="/etc/systemd/system/$app-scheduler.service"
|
||||||
|
|
|
@ -176,16 +176,6 @@ ynh_systemd_action --service_name="$app-consumer" --action="start" --log_path="/
|
||||||
ynh_systemd_action --service_name="$app-scheduler" --action="start" --log_path="/var/log/$app/$app-scheduler.log"
|
ynh_systemd_action --service_name="$app-scheduler" --action="start" --log_path="/var/log/$app/$app-scheduler.log"
|
||||||
ynh_systemd_action --service_name="$app-task-queue" --action="start" --log_path="/var/log/$app/$app-task-queue.log"
|
ynh_systemd_action --service_name="$app-task-queue" --action="start" --log_path="/var/log/$app/$app-task-queue.log"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SETUP FAIL2BAN
|
|
||||||
#=================================================
|
|
||||||
#ynh_script_progression --message="Configuring Fail2Ban..." --weight=1
|
|
||||||
|
|
||||||
# Create a dedicated Fail2Ban config
|
|
||||||
#ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"
|
|
||||||
# FIXME fail2ban
|
|
||||||
# ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-access.log" --failregex="<HOST>.* \"POST /api/v1/token/ HTTP/1.1\" 400 68.*$" --max_retry=5
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -25,64 +25,21 @@ then
|
||||||
yunohost service remove "$app-task-queue"
|
yunohost service remove "$app-task-queue"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# STOP AND REMOVE SERVICE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1
|
|
||||||
|
|
||||||
# Remove the dedicated systemd config
|
# Remove the dedicated systemd config
|
||||||
ynh_remove_systemd_config --service="$app"
|
ynh_remove_systemd_config --service="$app"
|
||||||
ynh_remove_systemd_config --service="$app-consumer"
|
ynh_remove_systemd_config --service="$app-consumer"
|
||||||
ynh_remove_systemd_config --service="$app-scheduler"
|
ynh_remove_systemd_config --service="$app-scheduler"
|
||||||
ynh_remove_systemd_config --service="$app-task-queue"
|
ynh_remove_systemd_config --service="$app-task-queue"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE LOGROTATE CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing logrotate configuration..." --weight=1
|
|
||||||
|
|
||||||
# Remove the app-specific logrotate config
|
# Remove the app-specific logrotate config
|
||||||
ynh_remove_logrotate
|
ynh_remove_logrotate
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE NGINX CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
|
|
||||||
|
|
||||||
# Remove the dedicated NGINX config
|
# Remove the dedicated NGINX config
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE DEPENDENCIES
|
|
||||||
#=================================================
|
|
||||||
#REMOVEME? ynh_script_progression --message="Removing dependencies..." --weight=1
|
|
||||||
|
|
||||||
# Remove metapackage and its dependencies
|
# Remove metapackage and its dependencies
|
||||||
ynh_redis_remove_db "$redis_db"
|
ynh_redis_remove_db "$redis_db"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE FAIL2BAN CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
#ynh_script_progression --message="Removing Fail2Ban configuration..." --weight=1
|
|
||||||
|
|
||||||
# Remove the dedicated Fail2Ban config
|
|
||||||
#ynh_remove_fail2ban_config
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SPECIFIC REMOVE
|
|
||||||
#=================================================
|
|
||||||
# REMOVE VARIOUS FILES
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing various files..." --weight=1
|
|
||||||
|
|
||||||
# Remove the log files
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# GENERIC FINALIZATION
|
|
||||||
#=================================================
|
|
||||||
# ...
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -54,19 +54,6 @@ ynh_add_config --template="../settings/conf/paperless.conf.example" --destinatio
|
||||||
chmod 400 "$install_dir/paperless.conf"
|
chmod 400 "$install_dir/paperless.conf"
|
||||||
chown $app:$app "$install_dir/paperless.conf"
|
chown $app:$app "$install_dir/paperless.conf"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE FAIL2BAN CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
#ynh_script_progression --message="Restoring the Fail2Ban configuration..." --weight=1
|
|
||||||
|
|
||||||
#ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf"
|
|
||||||
#ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf"
|
|
||||||
#ynh_systemd_action --action=restart --service_name=fail2ban
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SPECIFIC RESTORATION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL PYTHON DEPENDENCIES
|
# INSTALL PYTHON DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -98,13 +85,6 @@ ynh_script_progression --message="Restoring the PostgresSQL database..." --weigh
|
||||||
|
|
||||||
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE VARIOUS FILES
|
|
||||||
#=================================================
|
|
||||||
#ynh_script_progression --message="Restoring various files..." --weight=1
|
|
||||||
|
|
||||||
#ynh_restore_file --origin_path="/etc/$app/"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE SYSTEMD
|
# RESTORE SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -181,14 +181,6 @@ ynh_systemd_action --service_name="$app-consumer" --action="start" --log_path="/
|
||||||
ynh_systemd_action --service_name="$app-scheduler" --action="start" --log_path="/var/log/$app/$app-scheduler.log"
|
ynh_systemd_action --service_name="$app-scheduler" --action="start" --log_path="/var/log/$app/$app-scheduler.log"
|
||||||
ynh_systemd_action --service_name="$app-task-queue" --action="start" --log_path="/var/log/$app/$app-task-queue.log"
|
ynh_systemd_action --service_name="$app-task-queue" --action="start" --log_path="/var/log/$app/$app-task-queue.log"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# UPGRADE FAIL2BAN
|
|
||||||
#=================================================
|
|
||||||
#ynh_script_progression --message="Reconfiguring Fail2Ban..." --weight=1
|
|
||||||
|
|
||||||
# Create a dedicated Fail2Ban config
|
|
||||||
#ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue