From b98b45584cdb00a1a7b41e837352ce4156f127e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 26 Oct 2018 17:39:36 +0200 Subject: [PATCH] Migrate IPFS repo automatically if necessary go-ipfs can automatically migrate the repo if necessart after a software upgrade, but it needs to the `--migrate` option flag to do so. --- templates/default/ipfs.initd.service.erb | 2 +- templates/default/ipfs.systemd.service.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/default/ipfs.initd.service.erb b/templates/default/ipfs.initd.service.erb index 38e5d74..7315dd7 100644 --- a/templates/default/ipfs.initd.service.erb +++ b/templates/default/ipfs.initd.service.erb @@ -15,7 +15,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin DESC="ipfs daemon" NAME=ipfs DAEMON=/usr/local/bin/ipfs -DAEMON_ARGS="daemon --mount" +DAEMON_ARGS="daemon --mount --migrate" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME diff --git a/templates/default/ipfs.systemd.service.erb b/templates/default/ipfs.systemd.service.erb index 2217b29..f621ea5 100644 --- a/templates/default/ipfs.systemd.service.erb +++ b/templates/default/ipfs.systemd.service.erb @@ -2,7 +2,7 @@ Description=Start ipfs [Service] -ExecStart=/usr/local/bin/ipfs daemon +ExecStart=/usr/local/bin/ipfs daemon --migrate User=ipfs Group=ipfs Restart=always