aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2017-11-11 13:03:58 +0100
committerGordian Edenhofer2017-11-11 13:03:58 +0100
commita7d0166b3d9537a60e8fdcb45d660aa14ed1df88 (patch)
tree58e7b12fc8826fc10efdf5cb63e68beae628981a
parent93fc0e6a3dd471457a7ac2ea3845e21ffc19b7d9 (diff)
downloadaur-a7d0166b3d9537a60e8fdcb45d660aa14ed1df88.tar.gz
*.install: Instead of fancy `msg` use plain `echo`
Instead of relying on makepkg's built-in `msg` function simply use `echo` without any coloring or similar beatifications.
-rw-r--r--minecraft-server.install19
1 files changed, 9 insertions, 10 deletions
diff --git a/minecraft-server.install b/minecraft-server.install
index f6f998078da4..1b18da0355f8 100644
--- a/minecraft-server.install
+++ b/minecraft-server.install
@@ -5,24 +5,23 @@ _server_root="/srv/minecraft"
post_install() {
getent group "${_user}" &>/dev/null
if [ $? -ne 0 ]; then
- echo -e "\e[34;1m==>\e[39;1m Adding ${_user} system group... \e[0m"
+ echo "Adding ${_user} system group..."
groupadd -r ${_user} 1>/dev/null
fi
getent passwd "${_user}" &>/dev/null
if [ $? -ne 0 ]; then
- echo -e "\e[34;1m==>\e[39;1m Adding ${_user} system user... \e[0m"
+ echo "Adding ${_user} system user..."
useradd -r -g ${_user} -d "${_server_root}" ${_user} 1>/dev/null
fi
chown -R ${_user}:${_user} "${_server_root}"
- echo -e "\e[34;1m==>\e[39;1m NOTE: The world data is stored under ${_server_root} and the server runs \e[0m"
- echo -e "\e[34;1m==>\e[39;1m as ${_user} user to increase security. \e[0m"
- echo -e "\e[34;1m==>\e[39;1m NOTE: Use the ${_game} script under /usr/bin/${_game}d to start, stop or backup the server \e[0m"
- echo -e "\e[34;1m==>\e[39;1m and the configuration file under /etc/conf.d/${_game} to adjust it to your liking. \e[0m"
- echo -e "\e[34;1m==>\e[39;1m NOTE: For the server to start you have to accept the EULA in ${_server_root}/eula.txt \e[0m"
- echo -e "\e[34;1m==>\e[39;1m which is generated after the first server start. \e[0m"
+ 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() {
@@ -31,6 +30,6 @@ post_upgrade() {
post_remove() {
# Notifying the user of kept dirs
- [[ -d "${_server_root}" ]] && echo -e "\e[34;1m==>\e[39;1m NOTE: Game saves in ${_server_root} were kept on your system.\e[0m"
- echo -e "\e[34;1m==>\e[39;1m NOTE: The ${_user} user was preserved on your system. \e[0m"
+ [[ -d "${_server_root}" ]] && echo "Game saves in ${_server_root} were kept on your system."
+ echo "The ${_user} user was preserved on your system."
}