diff --git a/manifest.toml b/manifest.toml index 5d2c3fb..8bc5529 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://git.joinfirefish.org/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 bb65544..4dd43ea 100755 --- a/scripts/install +++ b/scripts/install @@ -26,6 +26,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 61fd3d5..0792e9e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -53,6 +53,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 + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================