From c6c5d00f36cf9e2546f3ff9e655fd440fa4092e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 25 Feb 2019 12:26:58 +0100 Subject: [PATCH] Run ipfs-cluster with the --upgrade switch It upgrades the state if needed --- metadata.rb | 2 +- templates/default/ipfs-cluster.initd.service.erb | 2 +- templates/default/ipfs-cluster.systemd.service.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/metadata.rb b/metadata.rb index f3ce6de..fb160e5 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ maintainer_email 'mail@kosmos.org' license 'MIT' description 'Installs/Configures ipfs' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.1.0' +version '0.1.1' supports %w(ubuntu debian) diff --git a/templates/default/ipfs-cluster.initd.service.erb b/templates/default/ipfs-cluster.initd.service.erb index 1b8c2ff..a301208 100644 --- a/templates/default/ipfs-cluster.initd.service.erb +++ b/templates/default/ipfs-cluster.initd.service.erb @@ -15,7 +15,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin DESC="ipfs-cluster daemon" NAME=ipfs-cluster DAEMON=/usr/local/bin/ipfs-cluster-service -DAEMON_ARGS="daemon" +DAEMON_ARGS="daemon --upgrade" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME diff --git a/templates/default/ipfs-cluster.systemd.service.erb b/templates/default/ipfs-cluster.systemd.service.erb index 08bf2f0..74dc402 100644 --- a/templates/default/ipfs-cluster.systemd.service.erb +++ b/templates/default/ipfs-cluster.systemd.service.erb @@ -2,7 +2,7 @@ Description=Start ipfs-cluster [Service] -ExecStart=/usr/local/bin/ipfs-cluster-service daemon +ExecStart=/usr/local/bin/ipfs-cluster-service daemon --upgrade User=ipfs Group=ipfs Restart=always