From f3b83071478dcadd48101acaa711feef8e3434c4 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 12 Feb 2024 21:33:46 +0100 Subject: [PATCH 1/4] Upgrade to v2024.02.12 --- manifest.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/manifest.toml b/manifest.toml index 220d0f1..7e2d53e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Piped" description.en = "An open-source alternative frontend for YouTube which is efficient by design." -version = "2024.02.05~ynh1" +version = "2024.02.12~ynh1" maintainers = ["orhtej2"] @@ -39,19 +39,19 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://github.com/TeamPiped/Piped/archive/275fcfd5336ef8e7affd36e38eded5d0726cbd69.tar.gz" - sha256 = "389b83e568a9b804cb2a6cb2c179514d51d033f67c88c78f9f02bad314e6f144" + url = "https://github.com/TeamPiped/Piped/archive/8a9e447d1f460821a33ffb6dcc927b1a1359439f.tar.gz" + sha256 = "a168099fb6224789be8febd44346ebb0dbd5197445bffc41306a6786ab49ba10" autoupdate.strategy = "latest_github_commit" [resources.sources.api] - url = "https://github.com/TeamPiped/Piped-Backend/archive/a16e3b05276325af89e9183580b137027a61f687.tar.gz" - sha256 = "0d57d359f4422e0cd17a72d2648bb2224b1cbf6b1bfaaaa8d7241f4bc751fa52" + url = "https://github.com/TeamPiped/Piped-Backend/archive/32f8c9b6c48dfa3334a70ba42c2d687185d60390.tar.gz" + sha256 = "0c3042de1a097d777721c968c56ed9c1e9602b4b215b963b7411962507392db2" autoupdate.strategy = "latest_github_commit" autoupdate.upstream = "https://github.com/TeamPiped/Piped-Backend/" [resources.sources.proxy] - url = "https://github.com/TeamPiped/piped-proxy/archive/34e83cc2bffe261a999af45d5d78e813733837c6.tar.gz" - sha256 = "bcfc56d4f8ed6b87a6e452a3fb47a2c21958c88752304c2cb56467f52700e9bc" + url = "https://github.com/TeamPiped/piped-proxy/archive/28fd48b6a36b0b87f37ed7f5c444a18bf1cf3dd5.tar.gz" + sha256 = "21914109c86009bab43faabee19a7feedab77bf2ea8a2cab78d83134f455abaf" autoupdate.strategy = "latest_github_commit" autoupdate.upstream = "https://github.com/TeamPiped/piped-proxy/" From 4749d417efcfd65e33fcaada8bef965c0a9295c3 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 12 Feb 2024 20:33:47 +0000 Subject: [PATCH 2/4] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da5c475..2579f49 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ By using Piped, you can freely watch and listen to content without the fear of p - [x] Public [JSON API](https://docs.piped.video/docs/api-documentation/) - [x] Federated protocol on Matrix to let instances collaborate with each other -**Shipped version:** 2024.02.05~ynh1 +**Shipped version:** 2024.02.12~ynh1 **Demo:** https://piped.video/ diff --git a/README_fr.md b/README_fr.md index 26e7e31..07e36d7 100644 --- a/README_fr.md +++ b/README_fr.md @@ -56,7 +56,7 @@ By using Piped, you can freely watch and listen to content without the fear of p - [x] Public [JSON API](https://docs.piped.video/docs/api-documentation/) - [x] Federated protocol on Matrix to let instances collaborate with each other -**Version incluse :** 2024.02.05~ynh1 +**Version incluse :** 2024.02.12~ynh1 **Démo :** https://piped.video/ From 15dd1036c79fe2a479e2bffed9defc1131ebe965 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 13 Feb 2024 02:19:55 +0100 Subject: [PATCH 3/4] fix log folder permissions --- scripts/install | 9 +++++---- scripts/restore | 5 +++-- scripts/upgrade | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index f1de79c..c861501 100644 --- a/scripts/install +++ b/scripts/install @@ -94,10 +94,11 @@ ynh_add_nginx_config ### systemd -mkdir -p /var/log/$app -touch /var/log/$app/$app-api.log -touch /var/log/$app/$app-proxy.log -chown -R $app: /var/log/$app +mkdir -p "/var/log/$app" +touch "/var/log/$app/$app-api.log" +touch "/var/log/$app/$app-proxy.log" +chown -R "$app:" "/var/log/$app" +chmod 640 "/var/log/$app" ynh_use_logrotate --logfile="/var/log/$app/$app-api.log" ynh_use_logrotate --logfile="/var/log/$app/$app-proxy.log" diff --git a/scripts/restore b/scripts/restore index b67a40d..166c7ca 100644 --- a/scripts/restore +++ b/scripts/restore @@ -46,8 +46,9 @@ systemctl enable $app-proxy.service --quiet #================================================= ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1 -mkdir -p /var/log/$app -chown -R $app:root /var/log/$app +mkdir -p "/var/log/$app" +chown -R "$app:root" "/var/log/$app" +chmod 640 "/var/log/$app" ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 6752d48..ce05276 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,6 +17,8 @@ upgrade_type=$(ynh_check_app_version_changed) # ENSURE DOWNWARD COMPATIBILITY #================================================= +chmod 640 "/var/log/$app" + #================================================= # STOP SYSTEMD SERVICE #================================================= From f50d7a311ffd808060f71b226563529489f5da64 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 13 Feb 2024 20:40:21 +0100 Subject: [PATCH 4/4] add manifest schema --- manifest.toml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/manifest.toml b/manifest.toml index 7e2d53e..9d7f861 100644 --- a/manifest.toml +++ b/manifest.toml @@ -1,3 +1,5 @@ +#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json + packaging_format = 2 id = "piped" @@ -7,7 +9,7 @@ description.en = "An open-source alternative frontend for YouTube which is effic version = "2024.02.12~ynh1" -maintainers = ["orhtej2"] +maintainers = [ "orhtej2" ] [upstream] license = "AGPL-3.0-or-later" @@ -19,7 +21,7 @@ code = "https://github.com/TeamPiped/Piped" [integration] yunohost = '>= 11.2' -architectures = ["amd64", "arm64"] +architectures = [ "amd64", "arm64" ] multi_instance = true ldap = false sso = false @@ -61,18 +63,18 @@ ram.runtime = "50M" arm64.url = "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.2_13.tar.gz" arm64.sha256 = "3ce6a2b357e2ef45fd6b53d6587aa05bfec7771e7fb982f2c964f6b771b7526a" - [resources.system_user] +[resources.system_user] - [resources.install_dir] +[resources.install_dir] - [resources.permissions] - main.url = "/" +[resources.permissions] +main.url = "/" - [resources.apt] - packages = "postgresql" +[resources.apt] +packages = "postgresql" - [resources.database] - type = "postgresql" +[resources.database] +type = "postgresql" - [resources.ports] - [resources.ports.proxy] +[resources.ports] + [resources.ports.proxy]