mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
commit
495f615e9f
13 changed files with 24 additions and 37 deletions
|
@ -22,7 +22,7 @@ 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:** 2.1.0~ynh1
|
||||
**Shipped version:** 2.1.0~ynh2
|
||||
|
||||
**Demo:** <https://video.etherpad.com/>
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ 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",
|
||||
|
||||
|
||||
**Versión actual:** 2.1.0~ynh1
|
||||
**Versión actual:** 2.1.0~ynh2
|
||||
|
||||
**Demo:** <https://video.etherpad.com/>
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ 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",
|
||||
|
||||
|
||||
**Paketatutako bertsioa:** 2.1.0~ynh1
|
||||
**Paketatutako bertsioa:** 2.1.0~ynh2
|
||||
|
||||
**Demoa:** <https://video.etherpad.com/>
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ Attention, la sauvegarde et la restauration de la base de données Redis ne sont
|
|||
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 :** 2.1.0~ynh1
|
||||
**Version incluse :** 2.1.0~ynh2
|
||||
|
||||
**Démo :** <https://video.etherpad.com/>
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ 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",
|
||||
|
||||
|
||||
**Versión proporcionada:** 2.1.0~ynh1
|
||||
**Versión proporcionada:** 2.1.0~ynh2
|
||||
|
||||
**Demo:** <https://video.etherpad.com/>
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ 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",
|
||||
|
||||
|
||||
**分发版本:** 2.1.0~ynh1
|
||||
**分发版本:** 2.1.0~ynh2
|
||||
|
||||
**演示:** <https://video.etherpad.com/>
|
||||
|
||||
|
|
|
@ -7,11 +7,10 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
Environment=ETHERPAD_PRODUCTION=true
|
||||
Environment="ETHERPAD_PRODUCTION=true"
|
||||
Environment="NODE_ENV=production"
|
||||
Environment="__YNH_NODE_LOAD_PATH__"
|
||||
ExecStart=__INSTALL_DIR__/bin/run.sh
|
||||
#ExecStart=pnpm run prod
|
||||
Restart=always
|
||||
|
||||
# Sandboxing options to harden security
|
||||
|
|
|
@ -1 +1 @@
|
|||
Please note, this package is only intended to test Etherpad with redis database. It should not be used for production.
|
||||
Please note, this package is only intended to test Etherpad with Redis database. It should not be used for production.
|
|
@ -5,7 +5,7 @@ name = "Etherpad"
|
|||
description.en = "Collaborative editing in real-time"
|
||||
description.fr = "Édition collaborative en temps réel"
|
||||
|
||||
version = "2.1.0~ynh1"
|
||||
version = "2.1.0~ynh2"
|
||||
|
||||
maintainers = ["eric_G"]
|
||||
|
||||
|
@ -17,7 +17,7 @@ admindoc = "https://etherpad.org/doc/v2.0.2/"
|
|||
code = "https://github.com/ether/etherpad-lite"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 11.2.12"
|
||||
yunohost = ">= 11.2.14"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
|
||||
|
|
|
@ -21,23 +21,13 @@ ynh_print_info --message="Declaring files to be backed up..."
|
|||
ynh_backup --src_path="$install_dir"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC BACKUP
|
||||
#=================================================
|
||||
# BACKUP LOGROTATE
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||
|
||||
#=================================================
|
||||
# BACKUP SYSTEMD
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -17,7 +17,7 @@ ynh_script_progression --message="Installing dependencies..." --weight=6
|
|||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
#=================================================
|
||||
# CREATE A POSTQRESQL DATABASE
|
||||
# CREATE REDIS DATABASE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Creating a Redis database..." --weight=5
|
||||
|
||||
|
@ -36,9 +36,9 @@ chmod -R o-rwx "$install_dir"
|
|||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring a systemd service..." --weight=4
|
||||
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
||||
|
||||
ynh_add_systemd_config
|
||||
|
||||
|
@ -49,9 +49,9 @@ ynh_use_logrotate
|
|||
yunohost service add $app --description="Collaborative editor" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
# APP INITIAL CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring $app..." --weight=6
|
||||
ynh_script_progression --message="Adding $app's configuration files..." --weight=1
|
||||
|
||||
abiword_path="null"
|
||||
soffice_path="null"
|
||||
|
@ -80,8 +80,7 @@ ynh_script_progression --message="Installing $app..." --weight=10
|
|||
|
||||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack enable
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true COREPACK_ENABLE_DOWNLOAD_PROMPT=0 bin/installDeps.sh
|
||||
popd
|
||||
|
||||
|
|
|
@ -32,15 +32,15 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=7
|
|||
|
||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less npm install pnpm -g
|
||||
pushd "$install_dir"
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEMD
|
||||
# RESTORE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=8
|
||||
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||
|
||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||
systemctl enable $app.service --quiet
|
||||
|
|
|
@ -101,9 +101,8 @@ ynh_script_progression --message="Installing $app..." --weight=10
|
|||
|
||||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack enable
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true COREPACK_ENABLE_DOWNLOAD_PROMPT=0 bin/installDeps.sh
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true COREPACK_ENABLE_DOWNLOAD_PROMPT=0 bin/installDeps.sh
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue