File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -286,10 +286,11 @@ if [[ -n "$VARIABLES" ]]; then
286286fi
287287
288288
289-
290- # prevent issue with bind mounted server.properties which can not be moved (sed tries to move the file when '-i' is used)
291- _SERVER_PROPERTIES=$( sed ' /^white-list=.*/d' server.properties) # Removes white-list= line from server.properties
292- echo " ${_SERVER_PROPERTIES} " > server.properties
289+ if [ -f server.properties ]; then
290+ # prevent issue with bind mounted server.properties which can not be moved (sed tries to move the file when '-i' is used)
291+ _SERVER_PROPERTIES=$( sed ' /^white-list=.*/d' server.properties) # Removes white-list= line from server.properties
292+ echo " ${_SERVER_PROPERTIES} " > server.properties
293+ fi
293294export ALLOW_LIST
294295
295296# update server.properties with environment settings
You can’t perform that action at this time.
0 commit comments