fix: replace broken JVM_OPTS sed with simple echo append
Orphaned single quote in sed -i "$a\\\"\"\"\\"\"\"" caused bash EOF parse error.
Replaced with: for j in ${JVM_OPTS}; do echo "$j" >> user_jvm_args.txt; done
This commit is contained in:
parent
56911472f4
commit
aab239bf0b
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ fi
|
||||||
|
|
||||||
if [[ -n "$JVM_OPTS" ]]; then
|
if [[ -n "$JVM_OPTS" ]]; then
|
||||||
sed -i '/-Xm[s,x]/d' user_jvm_args.txt
|
sed -i '/-Xm[s,x]/d' user_jvm_args.txt
|
||||||
for j in ${JVM_OPTS}; do sed -i '$a\''$j'' user_jvm_args.txt; done
|
for j in ; do echo "" >> user_jvm_args.txt; done
|
||||||
fi
|
fi
|
||||||
if [[ -n "$MOTD" ]]; then
|
if [[ -n "$MOTD" ]]; then
|
||||||
sed -i "s/^motd=.*/motd=$MOTD/" /data/server.properties
|
sed -i "s/^motd=.*/motd=$MOTD/" /data/server.properties
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue