From 843cb594330c3aaa07607e9e50807aa9e3fb20eb Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 15 May 2022 17:41:50 +0200 Subject: [PATCH] testing v0.3.3~ynh2 (#26) * in some case "db_user" doesn't exist, trying to fix that * added config-path arg to cli commands to make it work properly * fix typo while verifying db_user is empty * bump version * Auto-update README * added an indication that the GTS is in alpha during installation Co-authored-by: yunohost-bot Co-authored-by: yunohost-bot --- README.md | 8 ++++---- README_fr.md | 8 ++++---- doc/DISCLAIMER.md | 6 +++--- doc/DISCLAIMER_fr.md | 6 +++--- manifest.json | 14 +++++++++++--- scripts/upgrade | 4 ++-- 6 files changed, 27 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index e9679fb..25359d9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ With GoToSocial, you can keep in touch with your friends, post, read, and share Documentation is at [docs.gotosocial.org](https://docs.gotosocial.org). -**Shipped version:** 0.3.3~ynh1 +**Shipped version:** 0.3.3~ynh2 @@ -97,15 +97,15 @@ Feel free to refer to the [GoToSocial command line documentation](https://docs.g To create a new user, proceed as follows: ``` bash -./gotosocial admin account create --username some_username --email someuser@example.org --password 'somelongandcomplicatedpassword' +./gotosocial --config-path config.yaml admin account create --username some_username --email someuser@example.org --password 'SomeLongAndComplicatedPassword' -./gotosocial admin account confirm --username some_username +./gotosocial --config-path config.yaml admin account confirm --username some_username ``` And to promote them as an administrator of your instance: ``` bash -./gotosocial admin account promote --username some_username +./gotosocial --config-path config.yaml admin account promote --username some_username ``` ## Documentation and resources diff --git a/README_fr.md b/README_fr.md index 2292782..3ee6d07 100644 --- a/README_fr.md +++ b/README_fr.md @@ -20,7 +20,7 @@ Avec GoToSocial, vous pouvez rester en contact avec vos amis, publier, lire et p Vous pouvez consulter la documentation à l'adresse : [docs.gotosocial.org](https://docs.gotosocial.org). -**Version incluse :** 0.3.3~ynh1 +**Version incluse :** 0.3.3~ynh2 @@ -93,15 +93,15 @@ N'hésitez pas à vous référer à la [documentation de la ligne de commande de Pour créer un nouveau compte utilisateur, procédez comme suit : ``` bash -./gotosocial admin account create --username nom_dutilisateur --email utilisateur@example.org --password 'UnMotDePasseTrèsComplexe' +./gotosocial --config-path config.yaml admin account create --username nom_dutilisateur --email utilisateur@example.org --password 'UnMotDePasseTrèsComplexe' -./gotosocial admin account confirm --username nom_dutilisateur +./gotosocial --config-path config.yaml admin account confirm --username nom_dutilisateur ``` Et pour promouvoir un compte en tant qu'administrateur de votre instance : ``` bash -./gotosocial admin account promote --username nom_dutilisateur +./gotosocial --config-path config.yaml admin account promote --username nom_dutilisateur ``` ## Documentations et ressources diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 6d78e55..77f4038 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -61,13 +61,13 @@ Feel free to refer to the [GoToSocial command line documentation](https://docs.g To create a new user, proceed as follows: ``` bash -./gotosocial admin account create --username some_username --email someuser@example.org --password 'somelongandcomplicatedpassword' +./gotosocial --config-path config.yaml admin account create --username some_username --email someuser@example.org --password 'SomeLongAndComplicatedPassword' -./gotosocial admin account confirm --username some_username +./gotosocial --config-path config.yaml admin account confirm --username some_username ``` And to promote them as an administrator of your instance: ``` bash -./gotosocial admin account promote --username some_username +./gotosocial --config-path config.yaml admin account promote --username some_username ``` diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md index 9a71958..35d4d5b 100644 --- a/doc/DISCLAIMER_fr.md +++ b/doc/DISCLAIMER_fr.md @@ -61,13 +61,13 @@ N'hésitez pas à vous référer à la [documentation de la ligne de commande de Pour créer un nouveau compte utilisateur, procédez comme suit : ``` bash -./gotosocial admin account create --username nom_dutilisateur --email utilisateur@example.org --password 'UnMotDePasseTrèsComplexe' +./gotosocial --config-path config.yaml admin account create --username nom_dutilisateur --email utilisateur@example.org --password 'UnMotDePasseTrèsComplexe' -./gotosocial admin account confirm --username nom_dutilisateur +./gotosocial --config-path config.yaml admin account confirm --username nom_dutilisateur ``` Et pour promouvoir un compte en tant qu'administrateur de votre instance : ``` bash -./gotosocial admin account promote --username nom_dutilisateur +./gotosocial --config-path config.yaml admin account promote --username nom_dutilisateur ``` diff --git a/manifest.json b/manifest.json index 755957e..d2d05f1 100644 --- a/manifest.json +++ b/manifest.json @@ -6,10 +6,10 @@ "en": "An ActivityPub social network server, written in Golang.", "fr": "Un serveur de réseau social basé sur ActivityPub écrit en Golang." }, - "version": "0.3.3~ynh1", + "version": "0.3.3~ynh2", "url": "https://github.com/superseriousbusiness/gotosocial", "upstream": { - "license": " AGPL-3.0-only", + "license": "AGPL-3.0-only", "website": "https://docs.gotosocial.org/", "demo": "", "admindoc": "https://docs.gotosocial.org/en/latest/", @@ -31,6 +31,14 @@ ], "arguments": { "install": [ + { + "name": "alpha_software", + "type": "display_text", + "ask": { + "en": "Please note that GoToSocial is in early development stage. It may contain changing or unstable features, bugs, and security vulnerability.", + "fr": "Veuillez noter que GoToSocial est au tout début de son développment. Il pourrait contenir des fonctionnalités changeantes ou instables, des bugs, et des failles de sécurité." + } + }, { "name": "domain", "type": "domain" @@ -106,4 +114,4 @@ } ] } -} +} \ No newline at end of file diff --git a/scripts/upgrade b/scripts/upgrade index 58d3e08..ece767f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -87,7 +87,7 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a ynh_script_progression --message="Ensuring downward compatibility..." # Upgrade from <0.2.1~ynh4: -if ynh_compare_current_package_version --comparison lt --version 0.2.1~ynh4 +if ynh_compare_current_package_version --comparison lt --version 0.2.1~ynh4 || [ -z "$db_user" ] then # declaration of new parameters client_max_body_size="100M" @@ -107,7 +107,7 @@ then registration_reason=$(convert_bool "$registration_reason") # fix db_user existence db_user=$db_name - ynh_app_setting_set --app=$app --key=db_user --value=$db_user + ynh_app_setting_set --app="$app" --key=db_user --value="$db_user" # registration of new parameters ynh_app_setting_set --app="$app" --key=client_max_body_size --value="$client_max_body_size" ynh_app_setting_set --app="$app" --key=media_image_max_size --value="$media_image_max_size"