diff --git a/Berksfile.lock b/Berksfile.lock index de82422..9478720 100644 --- a/Berksfile.lock +++ b/Berksfile.lock @@ -22,7 +22,7 @@ DEPENDENCIES iis (= 6.7.1) ipfs git: https://github.com/67P/ipfs-cookbook.git - revision: ec2cda08f617e7ea617c40e8d2df4e450d84f92e + revision: b98b45584cdb00a1a7b41e837352ce4156f127e7 ref: master logrotate (= 2.2.0) mariadb (= 0.3.1) diff --git a/cookbooks/ipfs/templates/default/ipfs.initd.service.erb b/cookbooks/ipfs/templates/default/ipfs.initd.service.erb index 38e5d74..7315dd7 100644 --- a/cookbooks/ipfs/templates/default/ipfs.initd.service.erb +++ b/cookbooks/ipfs/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/cookbooks/ipfs/templates/default/ipfs.systemd.service.erb b/cookbooks/ipfs/templates/default/ipfs.systemd.service.erb index 2217b29..f621ea5 100644 --- a/cookbooks/ipfs/templates/default/ipfs.systemd.service.erb +++ b/cookbooks/ipfs/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