1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

Remove sync parameters

This commit is contained in:
Cédric Moreau 2017-06-14 15:49:19 +02:00 committed by cgeek
parent fc3ae457f1
commit 4416f892d9

View file

@ -8,10 +8,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$YNH_APP_ARG_DOMAIN domain=$YNH_APP_ARG_DOMAIN
path="/" path="/"
port=10901 port=10901
sync_node=$YNH_APP_ARG_SYNC_NODE
sync_port=$YNH_APP_ARG_SYNC_PORT
admin=$YNH_APP_ARG_ADMIN admin=$YNH_APP_ARG_ADMIN
is_cesium_public=$YNH_APP_ARG_IS_CESIUM_PUBLIC
# Source app helpers and functions # Source app helpers and functions
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -27,13 +24,6 @@ if [[ ! $? -eq 0 ]]; then
ynh_die "Port not available: ${port}" ynh_die "Port not available: ${port}"
fi fi
# Check node availability
if curl --output /dev/null --silent --head --fail "$sync_node:$sync_port/node/summary"; then
echo "Node $sync_node:$sync_port is available"
else
ynh_die "Node $sync_node:$sync_port is not available" 2
fi
# Check the admin exists in YunoHost users # Check the admin exists in YunoHost users
ynh_user_exists $admin ynh_user_exists $admin
@ -50,7 +40,6 @@ fi
ynh_app_setting_set $app port $port ynh_app_setting_set $app port $port
ynh_app_setting_set $app arch $arch ynh_app_setting_set $app arch $arch
ynh_app_setting_set "$app" admin "$admin" ynh_app_setting_set "$app" admin "$admin"
ynh_app_setting_set "$app" is_cesium_public "$is_cesium_public"
# Open port on firewall # Open port on firewall
sudo yunohost firewall allow TCP $port > /dev/null 2>&1 sudo yunohost firewall allow TCP $port > /dev/null 2>&1
@ -64,10 +53,6 @@ sudo duniter config --addep "BMAS $domain 443"
# Reset Duniter node's existing data (blockchain, not conf) # Reset Duniter node's existing data (blockchain, not conf)
sudo duniter reset data > /dev/null sudo duniter reset data > /dev/null
# Synchronize Duniter node
# Secho "Synchronizing with $sync_node:$sync_port. It may take a while."
# Ssudo duniter sync $sync_node $sync_port --nointeractive > /dev/null
# Launch Duniter node # Launch Duniter node
sudo duniter webstart sudo duniter webstart