Added support adding 'op' users

* Non-destructive MOTD setting
This commit is contained in:
Geoff Bourne
2014-09-20 14:10:48 +00:00
parent 716ff66b1b
commit 77541a9689
4 changed files with 55 additions and 32 deletions
+9 -2
View File
@@ -21,8 +21,15 @@ if [ ! -e server.properties ]; then
cp /tmp/server.properties .
fi
sed -i "/motd\s*=/ c motd=$MOTD" /data/server.properties
sed -i "/level-name\s*=/ c level-name=$LEVEL" /data/server.properties
if [ -n "$MOTD" ]; then
sed -i "/motd\s*=/ c motd=$MOTD" /data/server.properties
fi
if [ -n "$LEVEL" ]; then
sed -i "/level-name\s*=/ c level-name=$LEVEL" /data/server.properties
fi
if [ -n "$OPS" ]; then
echo $OPS | awk -v RS=, '{print}' >> ops.txt
fi
if [ ! -e /data/eula.txt ]; then
if [ "$EULA" != "" ]; then