mirror of
https://github.com/YunoHost-Apps/garage_ynh.git
synced 2024-09-03 18:36:32 +02:00
Testing (#2)
* 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:
parent
9eb28a1c0c
commit
6a3754e3f8
5 changed files with 11 additions and 5 deletions
|
@ -6,6 +6,7 @@ It shall NOT be edited by hand.
|
|||
# garage_ynh for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/garage)  
|
||||
|
||||
[](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 :
|
||||
|
|
|
@ -6,6 +6,7 @@ It shall NOT be edited by hand.
|
|||
# garage_ynh pour YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/garage)  
|
||||
|
||||
[](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 :
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue