1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

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 <yunohost@yunohost.org>
Co-authored-by: yunohost-bot <yunohost-bot@users.noreply.github.com>
This commit is contained in:
OniriCorpe 2022-05-15 17:41:50 +02:00 committed by GitHub
parent 3789197c49
commit 843cb59433
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 19 deletions

View file

@ -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

View file

@ -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

View file

@ -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
```

View file

@ -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
```

View file

@ -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 @@
}
]
}
}
}

View file

@ -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"