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:
parent
cc8b55b179
commit
e331e1e8c2
4
PKGBUILD
4
PKGBUILD
|
@ -39,8 +39,8 @@ package() {
|
||||||
install -Dm644 minecraftd.service "${pkgdir}/usr/lib/systemd/system/${_game}d.service"
|
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.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 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"
|
install -Dm644 minecraft_server.${pkgver}.jar "${pkgdir}${_server_root}/minecraft_server.${pkgver}.jar"
|
||||||
ln -s "minecraft_server.${pkgver}.jar" "${pkgdir}/srv/minecraft/minecraft_server.jar"
|
ln -s "minecraft_server.${pkgver}.jar" "${pkgdir}${_server_root}/minecraft_server.jar"
|
||||||
|
|
||||||
# Link the log files
|
# Link the log files
|
||||||
mkdir -p "${pkgdir}/var/log/"
|
mkdir -p "${pkgdir}/var/log/"
|
||||||
|
|
|
@ -28,7 +28,7 @@ post_install() {
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
chown -R ${_user}:${_user} "${_server_root}"
|
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 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 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 neither are those backups useless. They just will not work with the restore capability of the management script. \e[0m"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user