upgpkg: minecraft-server 1.11.2-1

Tweak proceeding sed command instead of piping to awk.
This commit is contained in:
Gordian Edenhofer 2016-12-29 14:04:41 +01:00
parent a11e065f9f
commit d39462710d
3 changed files with 3 additions and 3 deletions

View File

@ -29,6 +29,6 @@ pkgbase = minecraft-server
sha512sums = 19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418 sha512sums = 19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418
sha512sums = b0124c8cd90a4f9901a9105c0ee51eb3e7db944d106cf30fd91b29794178e650d3a21c3be3c8e0cb454b2cef6f27541c44e7a5e77a1d50f89b9152363de51d28 sha512sums = b0124c8cd90a4f9901a9105c0ee51eb3e7db944d106cf30fd91b29794178e650d3a21c3be3c8e0cb454b2cef6f27541c44e7a5e77a1d50f89b9152363de51d28
sha512sums = 8a2348464c6ec988c5edc755f482e3bfc0dd1aad65c1f82d16547ddea8abf130a773404187a280e23308a521c8732a90825683a1c6ee6fbb8ff30e53834fe75b sha512sums = 8a2348464c6ec988c5edc755f482e3bfc0dd1aad65c1f82d16547ddea8abf130a773404187a280e23308a521c8732a90825683a1c6ee6fbb8ff30e53834fe75b
sha512sums = 3024447e374d33fb9f93f1edd9b9553d8e4d4600637f9638d894b2d6c28d9b0727b7025f7cadcdfd675f0b11c511ddd07188c40bd8f7e2bcba27f07de1e48fc2 sha512sums = 503a5555021e42ed15fae8ca32f286142640b7d2c1b2c001d346c1e9010952f1154a3561a3ec7eb8a8736086bf2f15ffaec2c8388aa27332b675b66b9aa7e0c4
pkgname = minecraft-server pkgname = minecraft-server

View File

@ -27,7 +27,7 @@ sha512sums=('f147d99832e2e12f04cc56e28abe33c5acf7d3269631eb3d75aa18108425994d019
'19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418' '19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418'
'b0124c8cd90a4f9901a9105c0ee51eb3e7db944d106cf30fd91b29794178e650d3a21c3be3c8e0cb454b2cef6f27541c44e7a5e77a1d50f89b9152363de51d28' 'b0124c8cd90a4f9901a9105c0ee51eb3e7db944d106cf30fd91b29794178e650d3a21c3be3c8e0cb454b2cef6f27541c44e7a5e77a1d50f89b9152363de51d28'
'8a2348464c6ec988c5edc755f482e3bfc0dd1aad65c1f82d16547ddea8abf130a773404187a280e23308a521c8732a90825683a1c6ee6fbb8ff30e53834fe75b' '8a2348464c6ec988c5edc755f482e3bfc0dd1aad65c1f82d16547ddea8abf130a773404187a280e23308a521c8732a90825683a1c6ee6fbb8ff30e53834fe75b'
'3024447e374d33fb9f93f1edd9b9553d8e4d4600637f9638d894b2d6c28d9b0727b7025f7cadcdfd675f0b11c511ddd07188c40bd8f7e2bcba27f07de1e48fc2') '503a5555021e42ed15fae8ca32f286142640b7d2c1b2c001d346c1e9010952f1154a3561a3ec7eb8a8736086bf2f15ffaec2c8388aa27332b675b66b9aa7e0c4')
_game="minecraft" _game="minecraft"
_server_root="/srv/minecraft" _server_root="/srv/minecraft"

View File

@ -113,7 +113,7 @@ idle_server_daemon() {
screen -S "${SESSION_NAME}" -Q select . > /dev/null screen -S "${SESSION_NAME}" -Q select . > /dev/null
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
# Game server is up and running # Game server is up and running
if [[ "$(screen -S "${SESSION_NAME}" -ls | sed -n 2p | awk '{ print $2 }')" == "(Attached)" ]]; then if [[ "$(screen -S "${SESSION_NAME}" -ls | sed -n "s/.*${SESSION_NAME}\s\+//gp")" == "(Attached)" ]]; then
# An administrator is connected to the console, pause player checking # An administrator is connected to the console, pause player checking
echo "An admin is connected to the console. Pause player checking." echo "An admin is connected to the console. Pause player checking."
# Check for active player # Check for active player