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:
Greg Karékinian 2018-10-26 17:39:36 +02:00
parent ec2cda08f6
commit b98b45584c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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