From 271794e3ac91683aaac65be79a637ebc1c00f6d7 Mon Sep 17 00:00:00 2001 From: Gordian Edenhofer Date: Fri, 24 Jun 2016 20:03:08 +0200 Subject: [PATCH] upgpkg: minecraft-server 1.10.2-3 Create log dir with mode 2755 instead of 775. Remove .install notice about obsolete backups. --- .SRCINFO | 2 +- PKGBUILD | 4 ++-- minecraft-server.install | 7 ------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index e5a2ee7..df57452 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = minecraft-server pkgdesc = Minecraft server unit files, script, and jar pkgver = 1.10.2 - pkgrel = 2 + pkgrel = 3 url = http://minecraft.net/ install = minecraft-server.install arch = any diff --git a/PKGBUILD b/PKGBUILD index 368288e..d2281aa 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=minecraft-server pkgver=1.10.2 -pkgrel=2 +pkgrel=3 pkgdesc="Minecraft server unit files, script, and jar" arch=('any') url="http://minecraft.net/" @@ -43,7 +43,7 @@ package() { # Link the log files mkdir -p "${pkgdir}/var/log/" - install -dm775 "${pkgdir}/${_server_root}/logs" + install -dm2755 "${pkgdir}/${_server_root}/logs" ln -s "${_server_root}/logs" "${pkgdir}/var/log/${_game}" # Give the group write permissions and set user or group ID on execution diff --git a/minecraft-server.install b/minecraft-server.install index fc42dcd..e647b98 100644 --- a/minecraft-server.install +++ b/minecraft-server.install @@ -27,13 +27,6 @@ post_install() { post_upgrade() { chown -R ${_user}:${_user} "${_server_root}" - - if [[ -f /etc/conf.d/${_game}.pacnew ]]; then # TODO: remove oneday - echo -e "\e[34;1m==>\e[39;1m NOTE: There was a new change on how backup files are handled! Unfortunately this makes \e[0m" - echo -e "\e[34;1m==>\e[39;1m old backups incompatible with the newly implemeted restore feature. Bare in mind that no data is lost \e[0m" - echo -e "\e[34;1m==>\e[39;1m neither are those backups useless. They just will not work with the restore capability of the management script. \e[0m" - echo -e "\e[34;1m==>\e[39;1m NOTE: Please merge the new configuration file into /etc/conf.d/${_game} by e.g. using pacdiff. \e[0m" - fi } pre_remove() {