Upgpkg: 1.9-1

Use server_root whenever possible.
Add note to remove the /etc/conf.d/minecraft update-check oneday.
This commit is contained in:
Gordian Edenhofer 2016-03-01 13:28:15 +01:00
parent cc8b55b179
commit e331e1e8c2
2 changed files with 3 additions and 3 deletions

View File

@ -39,8 +39,8 @@ package() {
install -Dm644 minecraftd.service "${pkgdir}/usr/lib/systemd/system/${_game}d.service"
install -Dm644 minecraftd-backup.service "${pkgdir}/usr/lib/systemd/system/${_game}d-backup.service"
install -Dm644 minecraftd-backup.timer "${pkgdir}/usr/lib/systemd/system/${_game}d-backup.timer"
install -Dm644 minecraft_server.${pkgver}.jar "${pkgdir}/srv/minecraft/minecraft_server.${pkgver}.jar"
ln -s "minecraft_server.${pkgver}.jar" "${pkgdir}/srv/minecraft/minecraft_server.jar"
install -Dm644 minecraft_server.${pkgver}.jar "${pkgdir}${_server_root}/minecraft_server.${pkgver}.jar"
ln -s "minecraft_server.${pkgver}.jar" "${pkgdir}${_server_root}/minecraft_server.jar"
# Link the log files
mkdir -p "${pkgdir}/var/log/"

View File

@ -28,7 +28,7 @@ post_install() {
post_upgrade() {
chown -R ${_user}:${_user} "${_server_root}"
if [[ -f /etc/conf.d/${_game}.pacnew ]]; then
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"