clean up old ubuntu init and services folders
This commit is contained in:
parent
4a88362532
commit
c58b33871f
@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
if [[ $(cat /etc/timezone) != $TZ ]] ; then
|
|
||||||
echo "$TZ" > /etc/timezone
|
|
||||||
exec dpkg-reconfigure -f noninteractive tzdata
|
|
||||||
fi
|
|
@ -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
|
|
@ -2,15 +2,16 @@
|
|||||||
|
|
||||||
# predefine some variables
|
# predefine some variables
|
||||||
world_part="--world "
|
world_part="--world "
|
||||||
|
# shellcheck disable=SC2059
|
||||||
world_set=$world
|
world_set=$world
|
||||||
|
|
||||||
# set world_string variable to use user-defined world or default world.
|
# set world_string variable to use user-defined world or default world.
|
||||||
if [ -z "$world" ]; then
|
if [ -z "$world" ]; then
|
||||||
world_string=" "
|
world_string=" "
|
||||||
else
|
else
|
||||||
world_string=$world_part$world_set
|
world_string=($world_part$world_set)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-setuidgid abc minetestserver $world_string \
|
s6-setuidgid abc minetestserver "${worldstring[@]}" \
|
||||||
--config /config/.minetest/main-config/minetest.conf --port 30000
|
--config /config/.minetest/main-config/minetest.conf --port 30000
|
||||||
|
@ -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
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user