1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/uptime-kuma_ynh.git synced 2024-10-01 13:34:58 +02:00

Merge pull request #84 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-11-13 23:24:02 +01:00 committed by GitHub
commit e6474e2f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 17 deletions

View file

@ -29,7 +29,7 @@ Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot".
- Certificate Info - Certificate Info
**Shipped version:** 1.23.2~ynh1 **Shipped version:** 1.23.4~ynh1
**Demo:** https://demo.uptime.kuma.pet **Demo:** https://demo.uptime.kuma.pet

View file

@ -28,7 +28,7 @@ Uptime Kuma est un outil de surveillance auto-hébergé comme « Uptime Robot »
- Graphique Ping - Graphique Ping
- Informations sur le certificat - Informations sur le certificat
**Version incluse :** 1.23.2~ynh1 **Version incluse :** 1.23.4~ynh1
**Démo :** https://demo.uptime.kuma.pet **Démo :** https://demo.uptime.kuma.pet

View file

@ -8,6 +8,7 @@ Restart=always
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/ WorkingDirectory=__INSTALL_DIR__/
Environment="NODE_ENV=production"
ExecStart=__YNH_NODE__ server/server.js --port=__PORT__ ExecStart=__YNH_NODE__ server/server.js --port=__PORT__
StandardOutput=append:/var/log/__APP__/__APP__.log StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit StandardError=inherit

View file

@ -5,7 +5,7 @@ name = "Uptime Kuma"
description.en = "Monitoring tool like Uptime-Robot" description.en = "Monitoring tool like Uptime-Robot"
description.fr = "Outil de surveillance similaire à Uptime-Robot" description.fr = "Outil de surveillance similaire à Uptime-Robot"
version = "1.23.2~ynh1" version = "1.23.4~ynh1"
maintainers = ["ketsapiwiq", "eric_G"] maintainers = ["ketsapiwiq", "eric_G"]
@ -23,7 +23,7 @@ multi_instance = true
ldap = false ldap = false
sso = false sso = false
disk = "50M" disk = "50M"
ram.build = "700M" ram.build = "900M"
ram.runtime = "50M" ram.runtime = "50M"
[install] [install]
@ -39,14 +39,14 @@ ram.runtime = "50M"
[resources] [resources]
[resources.sources] [resources.sources]
[resources.sources.dist] [resources.sources.dist]
url = "https://github.com/louislam/uptime-kuma/releases/download/1.23.2/dist.tar.gz" url = "https://github.com/louislam/uptime-kuma/releases/download/1.23.4/dist.tar.gz"
sha256 = "b6c7c28b6ae92127f1a56d3e5c179977ebb2d53a86aa8e5fcabba3b3ad8f889b" sha256 = "f8795ba25a6f6559f5437fbf803953491ba47848942c8f1fe488d99475ebda2a"
autoupdate.strategy = "latest_github_release" autoupdate.strategy = "latest_github_release"
autoupdate.asset = "dist.tar.gz" autoupdate.asset = "dist.tar.gz"
[resources.sources.main] [resources.sources.main]
url = "https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.2.tar.gz" url = "https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.4.tar.gz"
sha256 = "a24698bb409d3b172eeb41229f56a0d00b6e5d07baeb2a94c669a66dc1469314" sha256 = "d8351ff6efc8a40a529fa78163b12a08e902634391540ffeff585a40bf78d81b"
autoupdate.strategy = "latest_github_release" autoupdate.strategy = "latest_github_release"
autoupdate.asset = "tarball" autoupdate.asset = "tarball"

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES # COMMON VARIABLES
#================================================= #=================================================
nodejs_version=20 nodejs_version=18
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -45,8 +45,6 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
# BACKUP VARIOUS FILES # BACKUP VARIOUS FILES
#================================================= #=================================================
# ynh_backup --src_path="/etc/cron.d/$app"
ynh_backup --src_path="/var/log/$app/" ynh_backup --src_path="/var/log/$app/"
#================================================= #=================================================

View file

@ -49,11 +49,12 @@ yunohost service add $app --description="Monitoring tool" --log="/var/log/$app/$
#================================================= #=================================================
# SPECIFIC SETUP # SPECIFIC SETUP
#================================================= #=================================================
ynh_script_progression --message="Installing Uptime Kuma dependencies..." --weight=7 ynh_script_progression --message="Installing $app dependencies..." --weight=7
pushd "$install_dir" pushd "$install_dir"
ynh_use_nodejs 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
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist
popd popd
#================================================= #=================================================

View file

@ -42,9 +42,9 @@ chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$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 ynh_install_nodejs --nodejs_version=$nodejs_version
@ -62,11 +62,11 @@ yunohost service add $app --description="Monitoring tool" --log="/var/log/$app/$
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================
ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weight=7 ynh_script_progression --message="Upgrading $app dependencies..." --weight=7
pushd "$install_dir" pushd "$install_dir"
ynh_use_nodejs 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 popd
#================================================= #=================================================