docker: Quote `ipfs init` args in the container_daemon shell script
License: MIT Signed-off-by: Antti Kaihola <antti+ipfs@kaihola.fi>
Antti Kaihola committed
Sep 26, 2018 at 10:59 UTC
821982e96a3b98903e15f371fdfafb624f1bd179
1 file changed
+3
-3
bin/container_daemon
+3
-3
@@ -17,9 +17,9 @@ ipfs version
17
if [ -e "$repo/config" ]; then
18
echo "Found IPFS fs-repo at $repo"
19
else
20
- case $IPFS_PROFILE in
21
- "") INIT_ARGS= ;;
22
- *) INIT_ARGS=--profile=$IPFS_PROFILE ;;
20
+ case "$IPFS_PROFILE" in
21
+ "") INIT_ARGS="" ;;
22
+ *) INIT_ARGS="--profile=$IPFS_PROFILE" ;;
23
esac
24
ipfs init $INIT_ARGS
25
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001