1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00
* add delay for node id

---------

Co-authored-by: oiseauroch <contact@oiseauroch.fr>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
oiseauroch 2023-02-21 11:21:16 +00:00 committed by GitHub
parent 9eb28a1c0c
commit 6a3754e3f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 5 deletions

View file

@ -6,6 +6,7 @@ It shall NOT be edited by hand.
# garage_ynh for YunoHost
[![Integration level](https://dash.yunohost.org/integration/garage.svg)](https://dash.yunohost.org/appci/app/garage) ![Working status](https://ci-apps.yunohost.org/ci/badges/garage.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/garage.maintain.svg)
[![Install garage_ynh with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=garage)
*[Lire ce readme en français.](./README_fr.md)*
@ -34,7 +35,7 @@ Garage is designed for storage clusters composed of nodes running at different p
- K2V API (experimental)
**Shipped version:** 0.8.0~ynh1
**Shipped version:** 0.8.0~ynh2
## Disclaimers / important information
* Limitations :

View file

@ -6,6 +6,7 @@ It shall NOT be edited by hand.
# garage_ynh pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/garage.svg)](https://dash.yunohost.org/appci/app/garage) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/garage.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/garage.maintain.svg)
[![Installer garage_ynh avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=garage)
*[Read this readme in english.](./README.md)*
@ -34,7 +35,7 @@ Garage is designed for storage clusters composed of nodes running at different p
- K2V API (experimental)
**Version incluse :** 0.8.0~ynh1
**Version incluse :** 0.8.0~ynh2
## Avertissements / informations importantes
* Limitations :

View file

@ -6,7 +6,7 @@
"en": "S3 storage",
"fr": "stockage S3"
},
"version": "0.8.0~ynh1",
"version": "0.8.0~ynh2",
"url": "https://garagehq.deuxfleurs.fr/",
"upstream": {
"license": "AGPL-3.0-only",

View file

@ -379,7 +379,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#=================================================
# SETUP SSOWAT
#=================================================
@ -405,6 +404,12 @@ ynh_script_progression --message="Configuring garage..." --weight=1
garage_command="$final_path/garage -c $final_path/garage.toml"
node_id=$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)
# sometimes server need some time to start
if [ -n "$node_id" ]
then
sleep 5
node_id=$($garage_command node id -q 2>/dev/null | cut -d '@' -f1)
fi
ynh_app_setting_set --app=$app --key=node_id --value=$node_id

View file

@ -149,7 +149,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
mkdir /var/log/$app
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#=================================================
# RECREATE CONFIGURATION
#=================================================