mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
Merge branch 'testing' into postgresql
This commit is contained in:
commit
22147ae673
15 changed files with 34 additions and 34 deletions
|
@ -17,6 +17,9 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control.
|
Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control.
|
||||||
|
This version of Etherpad is installed without plugins and uses Redis as database.
|
||||||
|
Be aware, Redis database backup and restore is not fully implemented.
|
||||||
|
If you want to install Etherpad with plugins and mysql database: https://github.com/YunoHost-Apps/etherpad_mypads_ynh",
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 1.9.2~ynh1
|
**Shipped version:** 1.9.2~ynh1
|
||||||
|
|
|
@ -17,6 +17,10 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
## Vue d’ensemble
|
## Vue d’ensemble
|
||||||
|
|
||||||
Etherpad est un éditeur collaboratif en temps réel évolutif pour des milliers d'utilisateurs simultanés en temps réel. Il fournit des capacités complètes d'exportation de données et s'exécute sur votre serveur, sous votre contrôle.
|
Etherpad est un éditeur collaboratif en temps réel évolutif pour des milliers d'utilisateurs simultanés en temps réel. Il fournit des capacités complètes d'exportation de données et s'exécute sur votre serveur, sous votre contrôle.
|
||||||
|
Cette version d'Etherpad est installée sans plugins et utilise Redis comme base de données.
|
||||||
|
Attention, la sauvegarde et la restauration de la base de données Redis ne sont pas entièrement implémentées.
|
||||||
|
Si vous souhaitez installer Etherpad avec les plugins et la base de données mysql : https://github.com/YunoHost-Apps/etherpad_mypads_ynh",
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 1.9.2~ynh1
|
**Version incluse :** 1.9.2~ynh1
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ location __PATH__/ {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
|
|
||||||
# be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
more_set_headers "X-Frame-Options : ALLOWALL";
|
more_set_headers "X-Frame-Options : ALLOWALL";
|
||||||
proxy_set_header X-Real-IP $remote_addr; # http://wiki.nginx.org/HttpProxyModule
|
proxy_set_header X-Real-IP $remote_addr; # http://wiki.nginx.org/HttpProxyModule
|
||||||
|
|
11
doc/ADMIN.md
11
doc/ADMIN.md
|
@ -1,10 +1,3 @@
|
||||||
This version of Etherpad is installed without plugins and uses Redis as database.
|
You can access Etherpad's admin panel at `__DOMAIN____PATH__/admin`. The configuration file for Etherpad is at the path `__INSTALL_DIR__/settings.json`.
|
||||||
Be aware, Redis database backup and restore is not fully implemented.
|
|
||||||
|
|
||||||
If you want to install Etherpad with plugins and mysql database: https://github.com/YunoHost-Apps/etherpad_mypads_ynh",
|
*Skin Builder* (accessible at this address `domain.tld/pad/p/test#skinvariantsbuilder`) allows you to customize the skin of your pad. It will give you a parameter to copy into your configuration file `__INSTALL_DIR__/settings.json`.
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
You can access Etherpad's admin panel at `__DOMAIN__/admin`. The configuration file for Etherpad is at the path `__INSTALL_DIR__/settings.json`.
|
|
||||||
|
|
||||||
*Skin Builder* (accessible at this address `__DOMAIN__/pad/p/test#skinvariantsbuilder`) allows you to customize the skin of your pad. It will give you a parameter to copy into your configuration file `__INSTALL_DIR__/settings.json`.
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Vous pouvez accéder au panneau d'administration d'Etherpad à l'adresse `domain.tld/admin`. Le fichier de configuration d'Etherpad est `__INSTALL_DIR__/settings.json`.
|
Vous pouvez accéder au panneau d'administration d'Etherpad à l'adresse `__DOMAIN____PATH__/admin`. Le fichier de configuration d'Etherpad est `__INSTALL_DIR__/settings.json`.
|
||||||
|
|
||||||
*Skin Builder* (accessible à l'adresse `__DOMAIN__/pad/p/test#skinvariantsbuilder`) vous permet de personnaliser l'apparence de votre pad. Il vous donnera un paramètre à copier dans votre fichier de configuration `__INSTALL_DIR__/settings.json`.
|
*Skin Builder* (accessible à l'adresse `__INSTALL_DIR__/pad/p/test#skinvariantsbuilder`) vous permet de personnaliser l'apparence de votre pad. Il vous donnera un paramètre à copier dans votre fichier de configuration `__INSTALL_DIR__/settings.json`.
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control.
|
Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control.
|
||||||
|
This version of Etherpad is installed without plugins and uses Redis as database.
|
||||||
|
Be aware, Redis database backup and restore is not fully implemented.
|
||||||
|
If you want to install Etherpad with plugins and mysql database: https://github.com/YunoHost-Apps/etherpad_mypads_ynh",
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
Etherpad est un éditeur collaboratif en temps réel évolutif pour des milliers d'utilisateurs simultanés en temps réel. Il fournit des capacités complètes d'exportation de données et s'exécute sur votre serveur, sous votre contrôle.
|
Etherpad est un éditeur collaboratif en temps réel évolutif pour des milliers d'utilisateurs simultanés en temps réel. Il fournit des capacités complètes d'exportation de données et s'exécute sur votre serveur, sous votre contrôle.
|
||||||
|
Cette version d'Etherpad est installée sans plugins et utilise Redis comme base de données.
|
||||||
|
Attention, la sauvegarde et la restauration de la base de données Redis ne sont pas entièrement implémentées.
|
||||||
|
Si vous souhaitez installer Etherpad avec les plugins et la base de données mysql : https://github.com/YunoHost-Apps/etherpad_mypads_ynh",
|
||||||
|
|
|
@ -35,8 +35,6 @@ ram.runtime = "50M"
|
||||||
default = "/etherpad"
|
default = "/etherpad"
|
||||||
|
|
||||||
[install.init_main_permission]
|
[install.init_main_permission]
|
||||||
help.en = "If enabled, Etherpad will be accessible by people who do not have an account. This can be changed later via the webadmin."
|
|
||||||
help.fr = "Si cette case est cochée, Etherpad sera accessible aux personnes n’ayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin."
|
|
||||||
type = "group"
|
type = "group"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
|
|
|
@ -51,4 +51,4 @@ ynh_psql_dump_db --database="$db_name" > db.sql
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_print_info --message="Backup script completed for Etherpad. (YunoHost will then actually copy those files to the archive)."
|
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|
||||||
|
|
|
@ -38,4 +38,4 @@ sleep 120
|
||||||
# END OF SCRIPT
|
# 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
|
||||||
|
|
|
@ -30,7 +30,7 @@ chown -R $app:www-data "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL ETHERPAD
|
# INSTALL ETHERPAD
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Etherpad..." --weight=60
|
ynh_script_progression --message="Installing $app..." --weight=60
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
|
@ -40,12 +40,12 @@ popd
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Etherpad..." --weight=6
|
ynh_script_progression --message="Configuring $app..." --weight=6
|
||||||
|
|
||||||
cp ../conf/settings.json $install_dir/settings.json
|
ynh_add_config --template="../conf/settings.json" --destination="$install_dir/settings.json"
|
||||||
|
chmod 400 "$install_dir/settings.json"
|
||||||
|
chown $app:$app "$install_dir/settings.json"
|
||||||
|
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$install_dir/settings.json"
|
|
||||||
ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$install_dir/settings.json"
|
|
||||||
if [ "$export" = "abiword" ]
|
if [ "$export" = "abiword" ]
|
||||||
then
|
then
|
||||||
# Get AbiWord binary path
|
# Get AbiWord binary path
|
||||||
|
@ -62,8 +62,8 @@ fi
|
||||||
ynh_store_file_checksum --file="$install_dir/settings.json"
|
ynh_store_file_checksum --file="$install_dir/settings.json"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/credentials.json" --destination="$install_dir/credentials.json"
|
ynh_add_config --template="../conf/credentials.json" --destination="$install_dir/credentials.json"
|
||||||
|
chmod 400 "$install_dir/credentials.json"
|
||||||
chmod 400 $install_dir/credentials.json
|
chown $app:$app "$install_dir/credentials.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
|
|
|
@ -19,7 +19,7 @@ ynh_script_progression --message="Removing system configurations related to $app
|
||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
# 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
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||||
then
|
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
|
yunohost service remove $app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -41,4 +41,4 @@ ynh_secure_remove --file="/var/log/$app"
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression --message="Removal of Etherpad completed" --last
|
ynh_script_progression --message="Removal of $app completed" --last
|
||||||
|
|
|
@ -64,4 +64,4 @@ ynh_systemd_action --service_name=nginx --action=reload
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression --message="Restoration completed for Etherpad" --last
|
ynh_script_progression --message="Restoration completed for $app" --last
|
||||||
|
|
|
@ -59,14 +59,11 @@ yunohost service add $app --description="Collaborative editor" --log="/var/log/$
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL ETHERPAD
|
# INSTALL ETHERPAD
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Etherpad..." --weight=90
|
ynh_script_progression --message="Installing $app..." --weight=90
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
#ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" src/bin/run.sh
|
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH src/bin/installDeps.sh
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH src/bin/installDeps.sh
|
||||||
#ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" npm cache clean --force
|
|
||||||
#ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" npm install --upgrade
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -80,4 +77,4 @@ ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --lin
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression --message="Upgrade of Etherpad completed" --last
|
ynh_script_progression --message="Upgrade of $app completed" --last
|
||||||
|
|
|
@ -6,4 +6,4 @@ test_format = 1.0
|
||||||
# Commits to test upgrade from
|
# Commits to test upgrade from
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
|
|
||||||
test_upgrade_from.96653aee9379d579a655777ac274355f4afca61c.name = "Upgrade from 5.4"
|
#test_upgrade_from.96653aee9379d579a655777ac274355f4afca61c.name = "Upgrade from 5.4"
|
Loading…
Add table
Reference in a new issue