diff options
author | Mickaël Thomas | 2018-04-04 13:40:08 +0200 |
---|---|---|
committer | Mickaël Thomas | 2018-04-04 13:40:08 +0200 |
commit | 90437a704c489a9d9b843c6e8a2384bf6ffaf76f (patch) | |
tree | 542ae21c5b29b62b2ebe351c991385fe1058daf5 | |
parent | c6291f13138a5f2ddff4940a2ca37435b020881c (diff) | |
download | aur-90437a704c489a9d9b843c6e8a2384bf6ffaf76f.tar.gz |
Fix owner of factorio config files
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | factorio-headless.install | 4 |
3 files changed, 6 insertions, 2 deletions
@@ -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 @@ -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/* + } } |