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

Merge branch 'testing' into PostgreSQL

This commit is contained in:
Éric Gaspar 2023-06-30 14:07:24 +02:00
commit 5242fefabc
5 changed files with 21 additions and 9 deletions

View file

@ -28,7 +28,7 @@ Tiny Tiny RSS is a free and open source web-based news feed (RSS/Atom) reader an
- flexible article filtering
**Shipped version:** 20230410~ynh1
**Shipped version:** 20230630~ynh1
**Demo:** https://srv.tt-rss.org/tt-rss/

View file

@ -28,7 +28,7 @@ Tiny Tiny RSS est un lecteur et agrégateur de flux de nouvelles (RSS/Atom) bas
- filtrage flexible des articles
**Version incluse :** 20230410~ynh1
**Version incluse :** 20230630~ynh1
**Démo :** https://srv.tt-rss.org/tt-rss/

View file

@ -5,7 +5,7 @@ name = "Tiny Tiny RSS"
description.en = "News feed (RSS/Atom) reader and aggregator"
description.fr = "Lecteur de flux dactualité utilisant les protocoles RSS et Atom"
version = "20230410~ynh1"
version = "20230630~ynh1"
maintainers = []
@ -17,7 +17,7 @@ admindoc = "https://tt-rss.org/wiki.php"
code = "https://git-gitea.tt-rss.org/fox/tt-rss"
[integration]
yunohost = ">= 11.1.17"
yunohost = ">= 11.1.21"
architectures = "all"
multi_instance = true
ldap = false
@ -40,8 +40,8 @@ ram.runtime = "50M"
[resources]
[resources.sources.main]
url = "https://gitlab.tt-rss.org/tt-rss/tt-rss/-/archive/53bd56894dc20349fe514818e04a620c79532e87.tar.gz"
sha256 = "871ffcfc2620b10e062bd03f37326acf29872fd7850f9aa0844568ac93fa682e"
url = "https://gitlab.tt-rss.org/tt-rss/tt-rss/-/archive/dc25a9cf6816b756cb38490eab93f02589c44a10.tar.gz"
sha256 = "e67cc86a5c0f6de72a7aa88ad4e52b1cdf2145244aa2f351b618c340f795ee75"
[resources.system_user]
@ -49,19 +49,17 @@ ram.runtime = "50M"
[resources.permissions]
main.url = "/"
public.url = "/public.php"
public.allowed = "visitors"
public.show_tile = false
public.protected = true
api.url = "/api"
api.allowed = "visitors"
api.show_tile = false
api.protected = true
[resources.apt]
packages = "postgresql php8.0-pgsql php8.0-curl php8.0-gd php8.0-opcache php8.0-fileinfo php8.0-intl php8.0-cli php8.0-mbstring php8.0-xml"
packages = "postgresql php8.2-pgsql php8.2-curl php8.2-gd php8.2-opcache php8.2-fileinfo php8.2-intl php8.2-cli php8.2-mbstring php8.2-xml"
[resources.database]
type = "postgresql"

View file

@ -22,6 +22,13 @@ echo "$(ynh_app_upstream_version)" > "$install_dir/version_static.txt"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# ALTER DATABASE
#=================================================
ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \
<<< "ALTER DATABASE $db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
#=================================================
# SYSTEM CONFIGURATION
#=================================================

View file

@ -50,6 +50,13 @@ fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# ALTER DATABASE
#=================================================
ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \
<<< "ALTER DATABASE $db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================