mirror of
https://github.com/YunoHost-Apps/listmonk_ynh.git
synced 2024-09-03 19:36:15 +02:00
commit
afb848a4d9
6 changed files with 7 additions and 6 deletions
|
@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
Listmonk is a standalone, self-hosted, newsletter and mailing list manager. It is fast, feature-rich, and packed into a single binary. It uses a PostgreSQL database as its data base.
|
||||
|
||||
|
||||
**Shipped version:** 2.5.1~ynh1
|
||||
**Shipped version:** 2.5.1~ynh2
|
||||
|
||||
**Demo:** https://demo.listmonk.app/
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
|||
Listmonk est un gestionnaire de newsletter et de liste de diffusion autonome et auto-hébergé. Il est rapide, riche en fonctionnalités et emballé dans un seul binaire. Il utilise une base de données PostgreSQL comme base de données.
|
||||
|
||||
|
||||
**Version incluse :** 2.5.1~ynh1
|
||||
**Version incluse :** 2.5.1~ynh2
|
||||
|
||||
**Démo :** https://demo.listmonk.app/
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ User=__APP__
|
|||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
ExecStart=__INSTALL_DIR__/listmonk
|
||||
RestartSec=2s
|
||||
Restart=always
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "Listmonk"
|
|||
description.en = "Newsletter and mailing list manager"
|
||||
description.fr = "Manager de newsletter et mailing list"
|
||||
|
||||
version = "2.5.1~ynh1"
|
||||
version = "2.5.1~ynh2"
|
||||
|
||||
maintainers = ["Navan Chauhan"]
|
||||
|
||||
|
@ -29,7 +29,6 @@ ram.runtime = "50M"
|
|||
[install]
|
||||
[install.domain]
|
||||
type = "domain"
|
||||
full_domain = true
|
||||
|
||||
[install.init_main_permission]
|
||||
type = "group"
|
||||
|
|
|
@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
||||
#=================================================
|
||||
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
|
||||
|
|
|
@ -25,7 +25,7 @@ chmod +x "$install_dir/listmonk"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=6
|
||||
|
||||
ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
|
||||
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEMD
|
||||
|
@ -42,7 +42,7 @@ yunohost service add $app --description="Newsletter and mailing list manager" --
|
|||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Starting a systemd service..." --weight=3
|
||||
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue