From 80d07cb0a91cb0472bcf963a2648504eed08c7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 20 Sep 2023 21:06:50 +0200 Subject: [PATCH 1/9] cleaning --- conf/systemd.service | 1 + scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 64bc054..84a727d 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,6 +8,7 @@ Restart=always User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ +Environment="NODE_ENV=production" ExecStart=__YNH_NODE__ server/server.js --port=__PORT__ StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit diff --git a/scripts/install b/scripts/install index e820352..a2d58f7 100755 --- a/scripts/install +++ b/scripts/install @@ -53,7 +53,7 @@ ynh_script_progression --message="Installing Uptime Kuma dependencies..." --weig pushd "$install_dir" ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 13e842b..499980e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,7 +66,7 @@ ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weigh pushd "$install_dir" ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production popd #================================================= From 9280d5c31b46186aa8bc7bf3307ee704a0578156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 21 Sep 2023 08:24:27 +0200 Subject: [PATCH 2/9] cleaning --- manifest.toml | 2 +- scripts/backup | 2 -- scripts/install | 2 +- scripts/upgrade | 6 +++--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/manifest.toml b/manifest.toml index da96443..e73a28f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -23,7 +23,7 @@ multi_instance = true ldap = false sso = false disk = "50M" -ram.build = "700M" +ram.build = "900M" ram.runtime = "50M" [install] diff --git a/scripts/backup b/scripts/backup index 8bc9490..5250294 100755 --- a/scripts/backup +++ b/scripts/backup @@ -45,8 +45,6 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" # BACKUP VARIOUS FILES #================================================= -# ynh_backup --src_path="/etc/cron.d/$app" - ynh_backup --src_path="/var/log/$app/" #================================================= diff --git a/scripts/install b/scripts/install index a2d58f7..8057245 100755 --- a/scripts/install +++ b/scripts/install @@ -49,7 +49,7 @@ yunohost service add $app --description="Monitoring tool" --log="/var/log/$app/$ #================================================= # SPECIFIC SETUP #================================================= -ynh_script_progression --message="Installing Uptime Kuma dependencies..." --weight=7 +ynh_script_progression --message="Installing $app dependencies..." --weight=7 pushd "$install_dir" ynh_use_nodejs diff --git a/scripts/upgrade b/scripts/upgrade index 499980e..3d99d82 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,9 +42,9 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# INSTALL NODEJS +# REAPPLY SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Upgrading nodejs..." --weight=2 +ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 ynh_install_nodejs --nodejs_version=$nodejs_version @@ -62,7 +62,7 @@ yunohost service add $app --description="Monitoring tool" --log="/var/log/$app/$ #================================================= # SPECIFIC UPGRADE #================================================= -ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weight=7 +ynh_script_progression --message="Upgrading $app dependencies..." --weight=7 pushd "$install_dir" ynh_use_nodejs From 168ba345b4e2b2f728f58ccc4413a8b83c9fabf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 21 Sep 2023 08:54:12 +0200 Subject: [PATCH 3/9] Update install --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index 8057245..0785a12 100755 --- a/scripts/install +++ b/scripts/install @@ -54,6 +54,7 @@ ynh_script_progression --message="Installing $app dependencies..." --weight=7 pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist popd #================================================= From d018d95a44212cff5cef689a360946df78e15fc6 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 9 Oct 2023 18:18:02 +0200 Subject: [PATCH 4/9] Upgrade to v1.23.3 --- manifest.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.toml b/manifest.toml index da96443..2e04d4f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Uptime Kuma" description.en = "Monitoring tool like Uptime-Robot" description.fr = "Outil de surveillance similaire à Uptime-Robot" -version = "1.23.2~ynh1" +version = "1.23.3~ynh1" maintainers = ["ketsapiwiq", "eric_G"] @@ -39,14 +39,14 @@ ram.runtime = "50M" [resources] [resources.sources] [resources.sources.dist] - url = "https://github.com/louislam/uptime-kuma/releases/download/1.23.2/dist.tar.gz" - sha256 = "b6c7c28b6ae92127f1a56d3e5c179977ebb2d53a86aa8e5fcabba3b3ad8f889b" + url = "https://github.com/louislam/uptime-kuma/releases/download/1.23.3/dist.tar.gz" + sha256 = "33db6e2061f1df75ad7e138d81edb1050b1814c0d94ada8e50e5da76e86edb90" autoupdate.strategy = "latest_github_release" autoupdate.asset = "dist.tar.gz" [resources.sources.main] - url = "https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.2.tar.gz" - sha256 = "a24698bb409d3b172eeb41229f56a0d00b6e5d07baeb2a94c669a66dc1469314" + url = "https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.3.tar.gz" + sha256 = "5678c7f801fd08b8cffe88e22002e3411608542314b63c68aa028cf53b31ff26" autoupdate.strategy = "latest_github_release" autoupdate.asset = "tarball" From 61d95c6bce7a62a3d3187b495a2b43b35b2ff410 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 9 Oct 2023 16:18:04 +0000 Subject: [PATCH 5/9] Auto-update README --- README.md | 3 +-- README_fr.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 61d5e08..61fb989 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". - Certificate Info -**Shipped version:** 1.23.2~ynh1 +**Shipped version:** 1.23.3~ynh1 **Demo:** https://demo.uptime.kuma.pet @@ -42,7 +42,6 @@ Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". * Official app website: * Official user documentation: * Upstream app code repository: -* YunoHost documentation for this app: * Report a bug: ## Developer info diff --git a/README_fr.md b/README_fr.md index 71d85dd..c0bc16c 100644 --- a/README_fr.md +++ b/README_fr.md @@ -28,7 +28,7 @@ Uptime Kuma est un outil de surveillance auto-hébergé comme « Uptime Robot » - Graphique Ping - Informations sur le certificat -**Version incluse :** 1.23.2~ynh1 +**Version incluse :** 1.23.3~ynh1 **Démo :** https://demo.uptime.kuma.pet @@ -41,7 +41,6 @@ Uptime Kuma est un outil de surveillance auto-hébergé comme « Uptime Robot » * Site officiel de l’app : * Documentation officielle utilisateur : * Dépôt de code officiel de l’app : -* Documentation YunoHost pour cette app : * Signaler un bug : ## Informations pour les développeurs From 24122b95d53193afb31c63be1ed29c84ecaf6247 Mon Sep 17 00:00:00 2001 From: DunkieGaming <72877944+DunkieGaming@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:57:20 +0100 Subject: [PATCH 6/9] 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 44277c5..9195d57 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -nodejs_version=20 +nodejs_version=18 #================================================= # PERSONAL HELPERS From e2aa1cf5afe1ac2bd0a33c259c210c11189220cb Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 13 Nov 2023 17:18:21 +0100 Subject: [PATCH 7/9] Upgrade to v1.23.4 --- manifest.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.toml b/manifest.toml index 2e04d4f..7cb5b04 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Uptime Kuma" description.en = "Monitoring tool like Uptime-Robot" description.fr = "Outil de surveillance similaire à Uptime-Robot" -version = "1.23.3~ynh1" +version = "1.23.4~ynh1" maintainers = ["ketsapiwiq", "eric_G"] @@ -39,14 +39,14 @@ ram.runtime = "50M" [resources] [resources.sources] [resources.sources.dist] - url = "https://github.com/louislam/uptime-kuma/releases/download/1.23.3/dist.tar.gz" - sha256 = "33db6e2061f1df75ad7e138d81edb1050b1814c0d94ada8e50e5da76e86edb90" + url = "https://github.com/louislam/uptime-kuma/releases/download/1.23.4/dist.tar.gz" + sha256 = "f8795ba25a6f6559f5437fbf803953491ba47848942c8f1fe488d99475ebda2a" autoupdate.strategy = "latest_github_release" autoupdate.asset = "dist.tar.gz" [resources.sources.main] - url = "https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.3.tar.gz" - sha256 = "5678c7f801fd08b8cffe88e22002e3411608542314b63c68aa028cf53b31ff26" + url = "https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.4.tar.gz" + sha256 = "d8351ff6efc8a40a529fa78163b12a08e902634391540ffeff585a40bf78d81b" autoupdate.strategy = "latest_github_release" autoupdate.asset = "tarball" From c90fa767605bed86a5d8f2e509f32486a7b041e3 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 13 Nov 2023 16:18:22 +0000 Subject: [PATCH 8/9] Auto-update README --- README.md | 3 ++- README_fr.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 61fb989..b2c7963 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". - Certificate Info -**Shipped version:** 1.23.3~ynh1 +**Shipped version:** 1.23.4~ynh1 **Demo:** https://demo.uptime.kuma.pet @@ -42,6 +42,7 @@ Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". * Official app website: * Official user documentation: * Upstream app code repository: +* YunoHost Store: * Report a bug: ## Developer info diff --git a/README_fr.md b/README_fr.md index c0bc16c..3591d85 100644 --- a/README_fr.md +++ b/README_fr.md @@ -28,7 +28,7 @@ Uptime Kuma est un outil de surveillance auto-hébergé comme « Uptime Robot » - Graphique Ping - Informations sur le certificat -**Version incluse :** 1.23.3~ynh1 +**Version incluse :** 1.23.4~ynh1 **Démo :** https://demo.uptime.kuma.pet @@ -41,6 +41,7 @@ Uptime Kuma est un outil de surveillance auto-hébergé comme « Uptime Robot » * Site officiel de l’app : * Documentation officielle utilisateur : * Dépôt de code officiel de l’app : +* YunoHost Store: * Signaler un bug : ## Informations pour les développeurs From 12df03d2a1a7e8b32b14c434984153ed6555d5c0 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 13 Nov 2023 17:22:10 +0000 Subject: [PATCH 9/9] Auto-update README --- README.md | 1 + README_fr.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 61fb989..d881c6a 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". * Official app website: * Official user documentation: * Upstream app code repository: +* YunoHost Store: * Report a bug: ## Developer info diff --git a/README_fr.md b/README_fr.md index c0bc16c..786d425 100644 --- a/README_fr.md +++ b/README_fr.md @@ -41,6 +41,7 @@ Uptime Kuma est un outil de surveillance auto-hébergé comme « Uptime Robot » * Site officiel de l’app : * Documentation officielle utilisateur : * Dépôt de code officiel de l’app : +* YunoHost Store: * Signaler un bug : ## Informations pour les développeurs