clean up old ubuntu init and services folders

This commit is contained in:
sparklyballs 2016-11-25 15:03:29 +00:00
parent 4a88362532
commit c58b33871f
4 changed files with 3 additions and 35 deletions

View File

@ -1,5 +0,0 @@
#!/bin/bash
if [[ $(cat /etc/timezone) != $TZ ]] ; then
echo "$TZ" > /etc/timezone
exec dpkg-reconfigure -f noninteractive tzdata
fi

View File

@ -1,14 +0,0 @@
#!/bin/bash
mkdir -p /config/.minetest/games /config/.minetest/mods
if [ ! -f "/config/.minetest/main-config/minetest.conf" ]; then
mkdir -p /config/.minetest/main-config
cp /defaults/minetest.conf /config/.minetest/main-config/minetest.conf
fi
if [ ! -d "/config/.minetest/games/minimal" ]; then
cp -pr /defaults/games/* /config/.minetest/games/
fi
chown -R abc:abc /config/.minetest

View File

@ -2,15 +2,16 @@
# predefine some variables
world_part="--world "
# shellcheck disable=SC2059
world_set=$world
# set world_string variable to use user-defined world or default world.
if [ -z "$world" ]; then
world_string=" "
else
world_string=$world_part$world_set
world_string=($world_part$world_set)
fi
exec \
s6-setuidgid abc minetestserver $world_string \
s6-setuidgid abc minetestserver "${worldstring[@]}" \
--config /config/.minetest/main-config/minetest.conf --port 30000

View File

@ -1,14 +0,0 @@
#!/bin/bash
# predefine some variables
world_part="--world "
world_set=$world
# set world_string variable to use user-defined world or default world.
if [ -z "$world" ]; then
world_string=" "
else
world_string=$world_part$world_set
fi
exec /sbin/setuser abc minetestserver $world_string --config /config/.minetest/main-config/minetest.conf --port 30000