1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefish_ynh.git synced 2024-09-03 18:36:06 +02:00
This commit is contained in:
老周部落 2024-07-30 16:13:08 +02:00 committed by GitHub
commit b4a7a319bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 4 deletions

View file

@ -5,7 +5,7 @@ name = "Firefish"
description.en = "Fork of Misskey with better UI/UX, security, features"
description.fr = "Un fork de Misskey avec une meilleure interface utilisateur, la sécurité, les fonctionnalités"
version = "20240206~ynh1"
version = "20240330~ynh1"
maintainers = ["oufmilo"]
@ -39,9 +39,9 @@ ram.runtime = "2G"
[resources]
[resources.sources.main]
url = "https://firefish.dev/firefish/firefish/-/archive/v20240206/firefish-v20240206.tar.gz"
sha256 = "a0160364e49120a7448202ecba1a7cd61ff8c96f29a97bd7de329ce05957a4d0"
autoupdate.strategy = "latest_gitlab_release"
url = "https://firefish.dev/firefish/firefish/-/archive/v20240330/firefish-v20240330.tar.gz"
sha256 = "ddd60ffd9d8157a7f65d502910e4c0d6f25095ce9f816b1acc5233c3feedec4d"
autoupdate.strategy = "latest_gitlab_tag"
[resources.system_user]

View file

@ -14,6 +14,13 @@ ynh_script_progression --message="Installing dependencies... This might take som
ynh_install_nodejs --nodejs_version="$NODEJS_VERSION"
#=================================================
# CREATE A POSTGRESQL DATABASE
#=================================================
ynh_script_progression --message="Initializing postgresql modules..."
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pgroonga;" --database=$db_name
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================

View file

@ -32,6 +32,9 @@ if [ -z "$install_dir" ]; then
ynh_app_setting_set --app="$app" --key=install_dir --value="$install_dir"
fi
# Add PostgreSQL extension for v20240319
ynh_exec_warn_less ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pgroonga;" --database=$db_name
#=================================================
# UPGRADE DEPENDENCIES
#=================================================