1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/n8n_ynh.git synced 2024-09-03 19:55:52 +02:00

Merge pull request #2 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2021-09-18 15:01:44 +02:00 committed by GitHub
commit 9ff4163bc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 14 additions and 19 deletions

View file

@ -14,15 +14,15 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to
## Overview
Etherpad allows you to edit documents collaboratively in real-time, much like a live multi-player editor that runs in your browser. Write articles, press releases, to-do lists, etc. together with your friends, fellow students or colleagues, all working on the same document at the same time.
**Shipped version:** 1.8.13
**Shipped version:** 0.138.0
## Screenshots
![](https://etherpad.org/img/etherpad_demo.gif)
![]()
## Demo
* [Official demo](https://video.etherpad.com/)
* [Official demo]()
## Configuration

View file

@ -14,15 +14,15 @@ Si vous n'avez pas YunoHost, merci de regarder [ici](https://yunohost.org/#/inst
## Résumé
Etherpad vous permet d'éditer des documents de manière collaborative en temps réel, un peu comme un éditeur multi-joueurs en direct qui s'exécute dans votre navigateur. Rédigez des articles, des communiqués de presse, des listes de choses à faire, etc. avec vos amis, camarades ou collègues, tous travaillant sur le même document en même temps.
**Version embarquée :** 1.8.13
**Version embarquée :** 0.138.0
## Captures d'écran
![](https://etherpad.org/img/etherpad_demo.gif)
![]()
## Démo
* [Démo officielle](https://video.etherpad.com/)
* [Démo officielle]()
## Configuration

View file

@ -2,11 +2,7 @@
; Manifest
domain="domain.tld"
path="/path"
admin="john"
language="fr"
is_public=1
password="pass"
port="9001"
; Checks
pkg_linter=1
setup_sub_dir=1

View file

@ -1,5 +1,5 @@
[Unit]
Description=.
Description=n8n
After=syslog.target network.target
[Service]

View file

@ -33,7 +33,7 @@ port=$(ynh_app_setting_get --app=$app --key=port)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up Etherpad before changing its URL (may take a while)..." --weight=2
ynh_script_progression --message="Backing up $app before changing its URL (may take a while)..." --weight=2
# Backup the current version of Etherpad
ynh_backup_before_upgrade
@ -114,11 +114,10 @@ ynh_systemd_action --service_name=nginx --action=reload
ynh_script_progression --message="Starting a systemd service..." --weight=6
# Start a systemd service
ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Your Etherpad version is"
sleep 120
ynh_systemd_action --service_name=$app --action=restart --log_path=systemd
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for Etherpad" --last
ynh_script_progression --message="Change of URL completed for $app" --last

View file

@ -29,7 +29,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
# 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
then
ynh_script_progression --message="Removing Etherpad service integration..." --weight=2
ynh_script_progression --message="Removing $app service integration..." --weight=2
yunohost service remove $app
fi
@ -61,7 +61,7 @@ ynh_remove_nodejs
#=================================================
# REMOVE ETHERPAD MAIN DIR
#=================================================
ynh_script_progression --message="Removing Etherpad main directory..." --weight=3
ynh_script_progression --message="Removing $app main directory..." --weight=3
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
@ -88,4 +88,4 @@ ynh_system_user_delete --username=$app
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of Etherpad completed" --last
ynh_script_progression --message="Removal of $app completed" --last

View file

@ -130,4 +130,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Restoration completed for Etherpad" --last
ynh_script_progression --message="Restoration completed for $app" --last