summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickaël Thomas2018-04-04 13:40:08 +0200
committerMickaël Thomas2018-04-04 13:40:08 +0200
commit90437a704c489a9d9b843c6e8a2384bf6ffaf76f (patch)
tree542ae21c5b29b62b2ebe351c991385fe1058daf5
parentc6291f13138a5f2ddff4940a2ca37435b020881c (diff)
downloadaur-90437a704c489a9d9b843c6e8a2384bf6ffaf76f.tar.gz
Fix owner of factorio config files
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--factorio-headless.install4
3 files changed, 6 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 49f06e51f3a1..79938e797202 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = factorio-headless
pkgdesc = A 2D game about building and maintaining factories - Server version (stable branch)
pkgver = 0.16.36
- pkgrel = 1
+ pkgrel = 2
url = http://www.factorio.com/
install = factorio-headless.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 47ad3f142b78..91ec7870dc5d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=factorio-headless
pkgver=0.16.36
-pkgrel=1
+pkgrel=2
pkgdesc="A 2D game about building and maintaining factories - Server version (stable branch)"
arch=('x86_64')
url="http://www.factorio.com/"
diff --git a/factorio-headless.install b/factorio-headless.install
index 288a17de7f82..02246c37c16b 100644
--- a/factorio-headless.install
+++ b/factorio-headless.install
@@ -49,4 +49,8 @@ post_upgrade() {
post_install $1
chmod 600 /etc/factorio/server-settings.json
}
+
+ (( $(vercmp $2 '0.16.36-2') >= 0 )) || {
+ chown factorio:games /etc/factorio/*
+ }
}