Skip to content

Commit fdab221

Browse files
authored
Merge pull request #19 from wfr3d/master
fix for overriding MFS_HDD_CONFIG by static content
2 parents 4937f9a + d4b68c5 commit fdab221

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

moosefs-chunkserver/chunkserver.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ fi
2020
if [ ! -z ${MFS_HDD_CONFIG+X} ];
2121
then
2222
echo $MFS_HDD_CONFIG | base64 -d | envsubst > /etc/mfs/mfshdd.cfg
23-
fi
24-
25-
26-
#Add size to hdd if defined
27-
if [ -z ${SIZE+X} ];
28-
then
29-
echo "/mnt/hdd0" > /etc/mfs/mfshdd.cfg
30-
else
31-
echo "/mnt/hdd0 ${SIZE}GiB" > /etc/mfs/mfshdd.cfg
23+
else
24+
#Add size to hdd if defined
25+
if [ -z ${SIZE+X} ];
26+
then
27+
echo "/mnt/hdd0" > /etc/mfs/mfshdd.cfg
28+
else
29+
echo "/mnt/hdd0 ${SIZE}GiB" > /etc/mfs/mfshdd.cfg
30+
fi
3231
fi
3332

3433
# Add label if defined

0 commit comments

Comments
 (0)