@@ -25,19 +25,19 @@ if grep -q "xmx" /config/data/system.properties && grep -q "xms" /config/data/sy
25
25
26
26
if [[ -n $MEM_LIMIT ]]; then
27
27
echo "*** Setting Java memory limit to $MEM_LIMIT ***"
28
- sed -i "s/unifi.xmx=[0-9]\{1,5\} /unifi.xmx=$MEM_LIMIT/" /config/data/system.properties
28
+ sed -i "s/unifi.xmx=.* /unifi.xmx=$MEM_LIMIT/" /config/data/system.properties
29
29
fi
30
30
31
31
if [[ -n $MEM_STARTUP ]]; then
32
32
echo "*** Setting Java memory minimum to $MEM_STARTUP ***"
33
- sed -i "s/unifi.xms=[0-9]\{1,5\} /unifi.xms=$MEM_STARTUP/" /config/data/system.properties
33
+ sed -i "s/unifi.xms=.* /unifi.xms=$MEM_STARTUP/" /config/data/system.properties
34
34
fi
35
35
36
36
elif grep -q "xmx" /config/data/system.properties; then
37
37
38
38
if [[ -n $MEM_LIMIT ]]; then
39
39
echo "*** Setting Java memory limit to $MEM_LIMIT ***"
40
- sed -i "s/unifi.xmx=[0-9]\{1,5\} /unifi.xmx=$MEM_LIMIT/" /config/data/system.properties
40
+ sed -i "s/unifi.xmx=.* /unifi.xmx=$MEM_LIMIT/" /config/data/system.properties
41
41
fi
42
42
43
43
if [[ -n $MEM_STARTUP ]]; then
@@ -49,7 +49,7 @@ elif grep -q "xms" /config/data/system.properties; then
49
49
50
50
if [[ -n $MEM_STARTUP ]]; then
51
51
echo "*** Setting Java memory minimum to $MEM_STARTUP ***"
52
- sed -i "s/unifi.xms=[0-9]\{1,5\} /unifi.xms=$MEM_STARTUP/" /config/data/system.properties
52
+ sed -i "s/unifi.xms=.* /unifi.xms=$MEM_STARTUP/" /config/data/system.properties
53
53
fi
54
54
55
55
if [[ -n $MEM_LIMIT ]]; then
0 commit comments