mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[mod] scripts: use 'duniter' command as '' var won't works on multi-instance.
This commit is contained in:
parent
f3b8dda8ec
commit
bf78479c08
3 changed files with 8 additions and 8 deletions
|
@ -58,17 +58,17 @@ sudo yunohost firewall allow TCP $port > /dev/null 2>&1
|
||||||
INSTALL_DUNITER_DEBIAN_PACKAGE
|
INSTALL_DUNITER_DEBIAN_PACKAGE
|
||||||
|
|
||||||
# Configure Duniter node
|
# Configure Duniter node
|
||||||
sudo $app config --ipv4 127.0.0.1 --port $port --remoteh $domain --remotep 443 --noupnp
|
sudo duniter config --ipv4 127.0.0.1 --port $port --remoteh $domain --remotep 443 --noupnp
|
||||||
|
|
||||||
# Reset Duniter node's existing data (blockchain, not conf)
|
# Reset Duniter node's existing data (blockchain, not conf)
|
||||||
sudo $app reset data > /dev/null
|
sudo duniter reset data > /dev/null
|
||||||
|
|
||||||
# Synchronize Duniter node
|
# Synchronize Duniter node
|
||||||
echo "Synchronizing with $sync_node:$sync_port. It may take a while."
|
echo "Synchronizing with $sync_node:$sync_port. It may take a while."
|
||||||
sudo $app sync $sync_node $sync_port --nointeractive > /dev/null
|
sudo duniter sync $sync_node $sync_port --nointeractive > /dev/null
|
||||||
|
|
||||||
# Launch Duniter node
|
# Launch Duniter node
|
||||||
sudo $app webstart
|
sudo duniter webstart
|
||||||
|
|
||||||
# Add Duniter service to the YunoHost monitoring
|
# Add Duniter service to the YunoHost monitoring
|
||||||
sudo yunohost service add $app --log /home/admin/.config/$app/"$app"_default/"$app".log
|
sudo yunohost service add $app --log /home/admin/.config/$app/"$app"_default/"$app".log
|
||||||
|
|
|
@ -11,8 +11,8 @@ domain=$(ynh_app_setting_get $app domain)
|
||||||
port=$(ynh_app_setting_get $app port)
|
port=$(ynh_app_setting_get $app port)
|
||||||
|
|
||||||
# Remove Duniter
|
# Remove Duniter
|
||||||
sudo $app stop
|
sudo duniter stop
|
||||||
sudo dpkg -r $app
|
sudo dpkg -r duniter
|
||||||
|
|
||||||
# Remove data and conf
|
# Remove data and conf
|
||||||
sudo rm -rf /root/.conf/duniter
|
sudo rm -rf /root/.conf/duniter
|
||||||
|
|
|
@ -16,7 +16,7 @@ admin=$(ynh_app_setting_get "$app" admin)
|
||||||
is_cesium_public=$(ynh_app_setting_get "$app" is_cesium_public)
|
is_cesium_public=$(ynh_app_setting_get "$app" is_cesium_public)
|
||||||
|
|
||||||
# Stop duniter daemon
|
# Stop duniter daemon
|
||||||
sudo $app stop
|
sudo duniter stop
|
||||||
|
|
||||||
# Remove Duniter package
|
# Remove Duniter package
|
||||||
sudo dpkg -r duniter
|
sudo dpkg -r duniter
|
||||||
|
@ -24,7 +24,7 @@ sudo dpkg -r duniter
|
||||||
INSTALL_DUNITER_DEBIAN_PACKAGE
|
INSTALL_DUNITER_DEBIAN_PACKAGE
|
||||||
|
|
||||||
# Start duniter daemon
|
# Start duniter daemon
|
||||||
sudo $app webstart
|
sudo duniter webstart
|
||||||
|
|
||||||
CONFIG_SSOWAT_FOR_RESTRICTED_ACCESS
|
CONFIG_SSOWAT_FOR_RESTRICTED_ACCESS
|
||||||
CONFIG_NGINX_FOR_WEB_ADMIN
|
CONFIG_NGINX_FOR_WEB_ADMIN
|
||||||
|
|
Loading…
Reference in a new issue