From b36761202337863067f0125709056fe981921b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 22 Mar 2024 23:21:21 +0100 Subject: [PATCH] Reorder sources, add autoupdate --- manifest.toml | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/manifest.toml b/manifest.toml index 8a2f22c..1cbd09a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -57,22 +57,26 @@ ram.runtime = "50M" type = "password" [resources] - [resources.sources] - [resources.sources.ldap_plugin] - url = "https://piwigo.org/ext/download.php?rid=7036" - sha256 = "3c22652f6c0653aaeebe239435796748ee57612ad44e8e5f2553277545d36e5e" - format = "zip" + [resources.sources.main] + url = "https://piwigo.org/download/dlcounter.php?code=14.3.0" + sha256 = "ab1d329afbb092ef74534bc09f56ef75a81d26443383e6ae47fe9801808552ef" + format = "zip" - [resources.sources.main] - url = "https://piwigo.org/download/dlcounter.php?code=14.3.0" - sha256 = "ab1d329afbb092ef74534bc09f56ef75a81d26443383e6ae47fe9801808552ef" - format = "zip" + autoupdate.strategy = "latest_github_release" - [resources.sources.log_failed_logins_plugin] - url = "http://piwigo.org/ext/download.php?rid=5525" - sha256 = "85b9a06f2c7ca8ae9698e6151c7631f519c945f696b02da72f9ff53243d7e4ca" - in_subdir = false - format = "zip" + [resources.sources.ldap_plugin] + url = "https://piwigo.org/ext/download.php?rid=7036" + sha256 = "3c22652f6c0653aaeebe239435796748ee57612ad44e8e5f2553277545d36e5e" + format = "zip" + + autoupdate.upstream = "https://github.com/kipjr/ldap_login" + autoupdate.strategy = "latest_github_release" + + [resources.sources.log_failed_logins_plugin] + url = "http://piwigo.org/ext/download.php?rid=5525" + sha256 = "85b9a06f2c7ca8ae9698e6151c7631f519c945f696b02da72f9ff53243d7e4ca" + in_subdir = false + format = "zip" [resources.system_user] allow_email = true @@ -85,7 +89,16 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "mariadb-server, imagemagick, php8.0-gd, php8.0-imagick, php8.0-xml, php8.0-mbstring, php8.0-mysqli, php8.0-ldap" + packages = [ + "mariadb-server", + "imagemagick", + "php8.0-gd", + "php8.0-imagick", + "php8.0-xml", + "php8.0-mbstring", + "php8.0-mysqli", + "php8.0-ldap", + ] [resources.database] type = "mysql"