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.
This commit is contained in:
parent
ec2cda08f6
commit
b98b45584c
@ -15,7 +15,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
|||||||
DESC="ipfs daemon"
|
DESC="ipfs daemon"
|
||||||
NAME=ipfs
|
NAME=ipfs
|
||||||
DAEMON=/usr/local/bin/ipfs
|
DAEMON=/usr/local/bin/ipfs
|
||||||
DAEMON_ARGS="daemon --mount"
|
DAEMON_ARGS="daemon --mount --migrate"
|
||||||
PIDFILE=/var/run/$NAME.pid
|
PIDFILE=/var/run/$NAME.pid
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Description=Start ipfs
|
Description=Start ipfs
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/ipfs daemon
|
ExecStart=/usr/local/bin/ipfs daemon --migrate
|
||||||
User=ipfs
|
User=ipfs
|
||||||
Group=ipfs
|
Group=ipfs
|
||||||
Restart=always
|
Restart=always
|
||||||
|
Loading…
x
Reference in New Issue
Block a user