summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2017-11-11 13:03:58 +0100
committerGordian Edenhofer2017-11-11 13:03:58 +0100
commita3806756a0bd23ae444e829441c1935d828dd06a (patch)
tree84ae4d5b2bc4d9fcd3e70957795f984d60d7575d
parent10d25cc218dc9ecb5abfb21b718b60e79e63ed1d (diff)
downloadaur-a3806756a0bd23ae444e829441c1935d828dd06a.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.
-rwxr-xr-xspigot.install18
1 files changed, 9 insertions, 9 deletions
diff --git a/spigot.install b/spigot.install
index abfc184503c..92fb2160345 100755
--- a/spigot.install
+++ b/spigot.install
@@ -4,22 +4,22 @@ _server_root="/srv/craftbukkit"
post_install() {
if ! getent group "${_user}" &>/dev/null; then
- msg "Adding ${_user} system group..."
+ echo "Adding ${_user} system group..."
groupadd -r "${_user}" 1>/dev/null
fi
if ! getent passwd "${_user}" &>/dev/null; then
- msg "Adding ${_user} system user..."
+ echo "Adding ${_user} system user..."
useradd -r -g "${_user}" -d "${_server_root}" "${_user}" 1>/dev/null
fi
chown -R "${_user}":"${_user}" "${_server_root}"
- msg "The world data is stored under ${_server_root} and the server runs as ${_user} user to increase security."
- msg "Use the ${_game} script under /usr/bin/${_game} to start, stop or backup the server."
- msg "Adjust the configuration file under /etc/conf.d/${_game} to your liking."
- msg "For the server to start you have to accept the EULA in ${_server_root}/eula.txt !"
- msg2 "The EULA file is generated after the first server start."
+ 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} 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() {
@@ -28,6 +28,6 @@ post_upgrade() {
post_remove() {
# Notifying the user of kept dirs
- [[ -d "${_server_root}" ]] && msg "Game saves in ${_server_root} were kept on your system."
- msg "The ${_user} user was preserved on your system."
+ [[ -d "${_server_root}" ]] && echo "Game saves in ${_server_root} were kept on your system."
+ echo "The ${_user} user was preserved on your system."
}