summarylogtreecommitdiffstats
path: root/minecraft-server.install
diff options
context:
space:
mode:
authorNitroretro2019-09-15 19:47:18 +0300
committerNitroretro2019-09-15 19:47:18 +0300
commita838219ace52714aeff52be497a1395df3ec4cbc (patch)
tree95a18a070f0a107cd536ac3f9b153841a093aa10 /minecraft-server.install
parent9a1fa5eaccf98b00c054313ed2ae42e0316aa09a (diff)
downloadaur-a838219ace52714aeff52be497a1395df3ec4cbc.tar.gz
Edited minecraft-server package to work with Forge
Diffstat (limited to 'minecraft-server.install')
-rw-r--r--minecraft-server.install35
1 files changed, 0 insertions, 35 deletions
diff --git a/minecraft-server.install b/minecraft-server.install
deleted file mode 100644
index 1b18da0355f8..000000000000
--- a/minecraft-server.install
+++ /dev/null
@@ -1,35 +0,0 @@
-_game="minecraft"
-_user="minecraft"
-_server_root="/srv/minecraft"
-
-post_install() {
- getent group "${_user}" &>/dev/null
- if [ $? -ne 0 ]; then
- echo "Adding ${_user} system group..."
- groupadd -r ${_user} 1>/dev/null
- fi
-
- getent passwd "${_user}" &>/dev/null
- if [ $? -ne 0 ]; then
- echo "Adding ${_user} system user..."
- useradd -r -g ${_user} -d "${_server_root}" ${_user} 1>/dev/null
- fi
-
- chown -R ${_user}:${_user} "${_server_root}"
-
- echo "The world data is stored under ${_server_root} and the server runs as ${_user} user to increase security."
- echo "Use the ${_game} script under /usr/bin/${_game}d to start, stop or backup the server."
- echo "Adjust the configuration file under /etc/conf.d/${_game} to your liking."
- echo "For the server to start you have to accept the EULA in ${_server_root}/eula.txt !"
- echo "The EULA file is generated after the first server start."
-}
-
-post_upgrade() {
- chown -R ${_user}:${_user} "${_server_root}"
-}
-
-post_remove() {
- # Notifying the user of kept dirs
- [[ -d "${_server_root}" ]] && echo "Game saves in ${_server_root} were kept on your system."
- echo "The ${_user} user was preserved on your system."
-}