diff --git a/manifest.toml b/manifest.toml index 89c80be..11dd329 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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 = "1.0.5rc~ynh1" +version = "20240330~ynh1" maintainers = ["oufmilo"] @@ -39,9 +39,9 @@ ram.runtime = "2G" [resources] [resources.sources.main] - url = "https://firefish.dev/firefish/firefish/-/archive/v1.0.5-rc/firefish-v1.0.5-rc.tar.gz" - sha256 = "b9b59899eaddcdd94e10974e34af083bd9a9c6228046dc4d4af0f3a669ccb7ef" - 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] diff --git a/scripts/install b/scripts/install index 10f351f..43f67c6 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 2f733ba..3eabd7d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================