From 201af711103374b0ff65464eb7b465ed9d177fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:04:00 +0200 Subject: [PATCH 01/20] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index d698ae3..c91db63 100644 --- a/manifest.toml +++ b/manifest.toml @@ -13,7 +13,7 @@ maintainers = ["eric_G"] license = "Apache-2.0" website = "https://etherpad.org/" demo = "https://video.etherpad.com/" -admindoc = "http://etherpad.org/doc/v1.9.3" +admindoc = "https://etherpad.org/doc/v2.0.2/" code = "https://github.com/ether/etherpad-lite" [integration] From a0c401889fe2f28519f4feb2a9124c4368350d94 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 11 Apr 2024 17:04:06 +0000 Subject: [PATCH 02/20] Auto-update READMEs --- README.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9939697..64e943c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ If you want to install Etherpad with plugins and mysql database: https://github. ## Documentation and resources - Official app website: -- Official admin documentation: +- Official admin documentation: - Upstream app code repository: - YunoHost Store: - Report a bug: diff --git a/README_eu.md b/README_eu.md index bf09d1b..2e49d26 100644 --- a/README_eu.md +++ b/README_eu.md @@ -33,7 +33,7 @@ If you want to install Etherpad with plugins and mysql database: https://github. ## Dokumentazioa eta baliabideak - Aplikazioaren webgune ofiziala: -- Administratzaileen dokumentazio ofiziala: +- Administratzaileen dokumentazio ofiziala: - Jatorrizko aplikazioaren kode-gordailua: - YunoHost Denda: - Eman errore baten berri: diff --git a/README_fr.md b/README_fr.md index 14cb281..96e856b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -33,7 +33,7 @@ Si vous souhaitez installer Etherpad avec les plugins et la base de données mys ## Documentations et ressources - Site officiel de l’app : -- Documentation officielle de l’admin : +- Documentation officielle de l’admin : - Dépôt de code officiel de l’app : - YunoHost Store : - Signaler un bug : diff --git a/README_gl.md b/README_gl.md index 4ca7310..9add8b4 100644 --- a/README_gl.md +++ b/README_gl.md @@ -33,7 +33,7 @@ If you want to install Etherpad with plugins and mysql database: https://github. ## Documentación e recursos - Web oficial da app: -- Documentación oficial para admin: +- Documentación oficial para admin: - Repositorio de orixe do código: - Tenda YunoHost: - Informar dun problema: diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 4211574..7c26c9c 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -33,7 +33,7 @@ If you want to install Etherpad with plugins and mysql database: https://github. ## 文档与资源 - 官方应用网站: -- 官方管理文档: +- 官方管理文档: - 上游应用代码库: - YunoHost 商店: - 报告 bug: From 3739c30fc15136eee815693e9f9aa3f56a6db933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:09:09 +0200 Subject: [PATCH 03/20] cleaning --- scripts/install | 5 ----- scripts/remove | 5 ----- scripts/restore | 2 -- scripts/upgrade | 17 ++--------------- 4 files changed, 2 insertions(+), 27 deletions(-) diff --git a/scripts/install b/scripts/install index b1d938b..0a0f018 100644 --- a/scripts/install +++ b/scripts/install @@ -30,7 +30,6 @@ ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db" #================================================= ynh_script_progression --message="Setting up source files..." --weight=1 -# Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir=$install_dir chmod -R o-rwx "$install_dir" @@ -41,13 +40,10 @@ chown -R $app:www-data "$install_dir" #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=4 -# Create a dedicated systemd config ynh_add_systemd_config -# Create a dedicated NGINX config ynh_add_nginx_config -# Use logrotate to manage application logfile(s) ynh_use_logrotate yunohost service add $app --description="Collaborative editor" --log="/var/log/$app/$app.log" @@ -93,7 +89,6 @@ popd #================================================= 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" #================================================= diff --git a/scripts/remove b/scripts/remove index 22c2052..1a7e93b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -16,27 +16,22 @@ source /usr/share/yunohost/helpers #================================================= 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 then ynh_script_progression --message="Removing $app service integration..." --weight=2 yunohost service remove $app fi -# Remove the dedicated systemd config ynh_remove_systemd_config -# Remove the app-specific logrotate config ynh_remove_logrotate ynh_remove_nodejs ynh_redis_remove_db "$redis_db" -# Remove the dedicated NGINX config ynh_remove_nginx_config -# Remove the log files ynh_secure_remove --file="/var/log/$app" #================================================= diff --git a/scripts/restore b/scripts/restore index 4f93b85..52de706 100644 --- a/scripts/restore +++ b/scripts/restore @@ -16,7 +16,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" -# Restore permissions on app files chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -31,7 +30,6 @@ chown $app:$app "$install_dir/credentials.json" #================================================= ynh_script_progression --message="Reinstalling dependencies..." --weight=7 -# Install Nodejs ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version pushd $install_dir diff --git a/scripts/upgrade b/scripts/upgrade index 8e61188..5bf3b4d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,12 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# CHECK VERSION -#================================================= - -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # STANDARD UPGRADE STEPS #================================================= @@ -53,13 +47,9 @@ fi #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 - - ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="settings.json credentials.json" -fi +ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="settings.json credentials.json" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -69,15 +59,12 @@ chown -R $app:www-data "$install_dir" #================================================= ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=3 -# Create a dedicated NGINX config ynh_add_nginx_config ynh_install_nodejs --nodejs_version=$nodejs_version -# Create a dedicated systemd config ynh_add_systemd_config -# Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append yunohost service add $app --description="Collaborative editor" --log="/var/log/$app/$app.log" From b1e9e8c35dec90aab0e14a10a4b61455583dfb21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:09:40 +0200 Subject: [PATCH 04/20] Update manifest.toml --- manifest.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index c91db63..927cf23 100644 --- a/manifest.toml +++ b/manifest.toml @@ -2,8 +2,8 @@ packaging_format = 2 id = "etherpad" name = "Etherpad" -description.en = "Online editor providing collaborative editing in real-time" -description.fr = "Éditeur en ligne fournissant l'édition collaborative en temps réel" +description.en = "Collaborative editing in real-time" +description.fr = "Édition collaborative en temps réel" version = "2.0.2~ynh1" From b9658f9f0bbfa133639464c9fadefa1014515733 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 30 Apr 2024 03:32:27 +0200 Subject: [PATCH 05/20] Upgrade to v2.0.3 --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 927cf23..8b26ec8 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Etherpad" description.en = "Collaborative editing in real-time" description.fr = "Édition collaborative en temps réel" -version = "2.0.2~ynh1" +version = "2.0.3~ynh1" maintainers = ["eric_G"] @@ -63,8 +63,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/ether/etherpad-lite/archive/refs/tags/2.0.2.tar.gz" - sha256 = "5b5e47dbe7b07c3cafd8830780408f25141231b62f44ce9aa066329ed3223b4e" + url = "https://github.com/ether/etherpad-lite/archive/refs/tags/2.0.3.tar.gz" + sha256 = "6dc19addc8280806590f9a82d4426a88a8ef77c7841f99f97a50d6aa6c9ecc1a" autoupdate.strategy = "latest_github_tag" [resources.ports] From 35419f05abe2ee7034bd86a37967d84f97135916 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 30 Apr 2024 01:32:30 +0000 Subject: [PATCH 06/20] Auto-update READMEs --- README.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 64e943c..99ba42d 100644 --- a/README.md +++ b/README.md @@ -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.0.2~ynh1 +**Shipped version:** 2.0.3~ynh1 **Demo:** diff --git a/README_eu.md b/README_eu.md index 2e49d26..812b63f 100644 --- a/README_eu.md +++ b/README_eu.md @@ -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.0.2~ynh1 +**Paketatutako bertsioa:** 2.0.3~ynh1 **Demoa:** diff --git a/README_fr.md b/README_fr.md index 96e856b..00285ae 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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.0.2~ynh1 +**Version incluse :** 2.0.3~ynh1 **Démo :** diff --git a/README_gl.md b/README_gl.md index 9add8b4..442625d 100644 --- a/README_gl.md +++ b/README_gl.md @@ -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.0.2~ynh1 +**Versión proporcionada:** 2.0.3~ynh1 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 7c26c9c..35c596a 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -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.0.2~ynh1 +**分发版本:** 2.0.3~ynh1 **演示:** From 00eb604dd00ebe63ae773639f309975b4660fdfa Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 8 May 2024 20:26:02 +0000 Subject: [PATCH 07/20] Auto-update READMEs --- README_zh_Hans.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 35c596a..c38ac7c 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -3,7 +3,7 @@ 请勿手动编辑。 --> -# YunoHost 的 Etherpad +# YunoHost 上的 Etherpad [![集成程度](https://dash.yunohost.org/integration/etherpad.svg)](https://dash.yunohost.org/appci/app/etherpad) ![工作状态](https://ci-apps.yunohost.org/ci/badges/etherpad.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/etherpad.maintain.svg) From 239b1f8653d2269e85ce2d4c96d111725dca844d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 16:16:49 +0200 Subject: [PATCH 08/20] Update systemd.service --- conf/systemd.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index a10e078..5b068e9 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,10 +7,11 @@ 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=__INSTALL_DIR__/bin/run.sh +ExecStart=pnpm run prod Restart=always # Sandboxing options to harden security From d206d20aaecb1e7201bf6ec7625df5bf3309083b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 16:22:34 +0200 Subject: [PATCH 09/20] Update systemd.service --- conf/systemd.service | 2 -- 1 file changed, 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 5b068e9..d2aa174 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,10 +7,8 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -#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 From 9abb71393cb2310f4c4218b15a169f9ef18694bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 16:34:08 +0200 Subject: [PATCH 10/20] Update settings.json --- conf/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/settings.json b/conf/settings.json index 7941a35..66cd2c2 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -265,7 +265,7 @@ * This will improve the loading performance massively, but makes it difficult * to debug the javascript/css */ - "minify": true, + "minify": false, /* * How long may clients use served javascript code (in seconds)? From 46d1de20a24d8c295bc5c91a94338a6538d7fe5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 16:44:29 +0200 Subject: [PATCH 11/20] Update settings.json --- conf/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/settings.json b/conf/settings.json index 66cd2c2..7941a35 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -265,7 +265,7 @@ * This will improve the loading performance massively, but makes it difficult * to debug the javascript/css */ - "minify": false, + "minify": true, /* * How long may clients use served javascript code (in seconds)? From 0ab95a89b1773d4e66dcc251561c96e2fa90dbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 18:29:40 +0200 Subject: [PATCH 12/20] Update settings.json --- conf/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/settings.json b/conf/settings.json index 7941a35..a131657 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -504,7 +504,7 @@ /* * Restrict socket.io transport methods */ - "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"], + "socketTransportProtocols" : ["websocket", "polling"], "socketIo": { /* From 3c30c09b274c09cfc04f77f7758105e95d009932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 18:31:11 +0200 Subject: [PATCH 13/20] Update systemd.service --- conf/systemd.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index d2aa174..559f1e1 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,9 +7,11 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ +Environment=ETHERPAD_PRODUCTION=true Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=pnpm run prod +ExecStart=__INSTALL_DIR__/bin/run.sh +#ExecStart=pnpm run prod Restart=always # Sandboxing options to harden security From 9ed71d759a5b9721a9190eb2598d22d0e5d65ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 19:13:17 +0200 Subject: [PATCH 14/20] Update settings.json --- conf/settings.json | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/conf/settings.json b/conf/settings.json index a131657..f470605 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -292,14 +292,6 @@ */ "soffice": null, - /* - * Path to the Tidy executable. - * - * Tidy is used to improve the quality of exported pads. - * Setting it to null disables Tidy. - */ - "tidyHtml": null, - /* * Allow import of file types other than the supported ones: * txt, doc, docx, rtf, odt, html & htm @@ -627,5 +619,36 @@ /* * Enable/Disable case-insensitive pad names. */ - "lowerCasePadIds": false + "lowerCasePadIds": false, + + "sso": { + "issuer": "${SSO_ISSUER:http://localhost:9001}", + "clients": [ + { + "client_id": "${ADMIN_CLIENT:admin_client}", + "client_secret": "${ADMIN_SECRET:admin}", + "grant_types": ["authorization_code"], + "response_types": ["code"], + "redirect_uris": ["${ADMIN_REDIRECT:http://localhost:9001/admin/}"] + }, + { + "client_id": "${USER_CLIENT:user_client}", + "client_secret": "${USER_SECRET:user}", + "grant_types": ["authorization_code"], + "response_types": ["code"], + "redirect_uris": ["${USER_REDIRECT:http://localhost:9001/}"] + } + ] + } + + /* Set the time to live for the tokens + This is the time of seconds a user is logged into Etherpad + "ttl": { + "AccessToken": 3600, + "AuthorizationCode": 600, + "ClientCredentials": 3600, + "IdToken": 3600, + "RefreshToken": 86400 + } + */ } From 2350f97e1eefaac2006f53a80560e939935ef598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 19:18:30 +0200 Subject: [PATCH 15/20] Update settings.json --- conf/settings.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/settings.json b/conf/settings.json index f470605..0bf1424 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -622,21 +622,21 @@ "lowerCasePadIds": false, "sso": { - "issuer": "${SSO_ISSUER:http://localhost:9001}", + "issuer": "${SSO_ISSUER:http://127.0.0.1:__PORT__}", "clients": [ { "client_id": "${ADMIN_CLIENT:admin_client}", "client_secret": "${ADMIN_SECRET:admin}", "grant_types": ["authorization_code"], "response_types": ["code"], - "redirect_uris": ["${ADMIN_REDIRECT:http://localhost:9001/admin/}"] + "redirect_uris": ["${ADMIN_REDIRECT:http://127.0.0.1:__PORT__/admin/}"] }, { "client_id": "${USER_CLIENT:user_client}", "client_secret": "${USER_SECRET:user}", "grant_types": ["authorization_code"], "response_types": ["code"], - "redirect_uris": ["${USER_REDIRECT:http://localhost:9001/}"] + "redirect_uris": ["${USER_REDIRECT:http://127.0.0.1:__PORT__/}"] } ] } From a33e08210c3c33c8d47acbd31e1aadb12aa8adc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 19:18:56 +0200 Subject: [PATCH 16/20] Update systemd.service --- conf/systemd.service | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 559f1e1..d2aa174 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,11 +7,9 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -Environment=ETHERPAD_PRODUCTION=true Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=__INSTALL_DIR__/bin/run.sh -#ExecStart=pnpm run prod +ExecStart=pnpm run prod Restart=always # Sandboxing options to harden security From d5f0ba7de580bd72474e95f86196bc64c0612646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 19:20:53 +0200 Subject: [PATCH 17/20] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b1ab6a0..2b9094e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -nodejs_version=20 +nodejs_version=22 #================================================= # PERSONAL HELPERS From b3fd9fd9b5a45f06216a42b0099357f5748038ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 19:22:15 +0200 Subject: [PATCH 18/20] Revert "Update systemd.service" This reverts commit a33e08210c3c33c8d47acbd31e1aadb12aa8adc4. --- conf/systemd.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index d2aa174..559f1e1 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,9 +7,11 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ +Environment=ETHERPAD_PRODUCTION=true Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=pnpm run prod +ExecStart=__INSTALL_DIR__/bin/run.sh +#ExecStart=pnpm run prod Restart=always # Sandboxing options to harden security From 4bee65d01e66c4b22f71eac3cb033742c3751dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 20:38:46 +0200 Subject: [PATCH 19/20] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 0a0f018..c287ea3 100644 --- a/scripts/install +++ b/scripts/install @@ -80,7 +80,7 @@ ynh_script_progression --message="Installing $app..." --weight=10 pushd $install_dir ynh_use_nodejs - ynh_exec_warn_less npm install pnpm -g + #ynh_exec_warn_less npm install pnpm -g ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true bin/installDeps.sh popd From a8595a93af482c0ca4411626a0a846f11b5857ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 20:45:47 +0200 Subject: [PATCH 20/20] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index c287ea3..0a0f018 100644 --- a/scripts/install +++ b/scripts/install @@ -80,7 +80,7 @@ ynh_script_progression --message="Installing $app..." --weight=10 pushd $install_dir ynh_use_nodejs - #ynh_exec_warn_less npm install pnpm -g + ynh_exec_warn_less npm install pnpm -g ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true bin/installDeps.sh popd