diff options
Diffstat (limited to 'go-ipfs-git.install')
-rw-r--r-- | go-ipfs-git.install | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/go-ipfs-git.install b/go-ipfs-git.install index 6ab20aef092c..7da084800dc9 100644 --- a/go-ipfs-git.install +++ b/go-ipfs-git.install @@ -22,6 +22,14 @@ post_upgrade() { su ipfs -s /bin/bash -c "export IPFS_PATH='/var/lib/ipfs/'; ipfs init" fi + + # do the repo migration now + echo "stopping ipfs to check if repo migration is necessary..." + systemctl stop ipfs >/dev/null 2>&1 || true + echo "checking/running repo migration..." + su ipfs -s /bin/bash -c "export IPFS_PATH='/var/lib/ipfs/'; ipfs repo migrate" + echo "checking/migration completed" + echo "Please restart your ipfs service manually if necessary" } post_install() { |