summarylogtreecommitdiffstats
path: root/nquakesv.install
diff options
context:
space:
mode:
authorbrent s2017-04-14 09:29:30 -0400
committerbrent s2017-04-14 09:29:30 -0400
commitdccca5255f9ec83bef5a52f207c5e023ff5a6212 (patch)
tree6852e50ab4bdbdad6287fcc4145f4d2ec174ab8a /nquakesv.install
parentffcfe277897cdc8aa9ae5fa9f9c8cd48e4847772 (diff)
downloadaur-dccca5255f9ec83bef5a52f207c5e023ff5a6212.tar.gz
shit, i need to re-do this as a flat list, not json.
Diffstat (limited to 'nquakesv.install')
-rw-r--r--nquakesv.install31
1 files changed, 5 insertions, 26 deletions
diff --git a/nquakesv.install b/nquakesv.install
index e92f4d3a5442..80866a2099fc 100644
--- a/nquakesv.install
+++ b/nquakesv.install
@@ -1,27 +1,16 @@
post_install() {
echo
echo '!!! NOTE !!!'
- echo 'It is *strongly* encouraged to add users to the "users" group (usermod -aG users <username>) if they will be running ezQuake/nQuake.
+ echo 'It is *strongly* encouraged to add users to the "users" group (usermod -aG users <username>) if they will be running nQuake.
Trust me. If you hit a bug and you are using a user not in the users group, you are testing bad and you should feel bad.'
echo
echo "nQuake Server has been installed. Please copy the retail pak1.pak files (as exactly that filename) to /opt/quake/id1/
- and do (as root): chmod 0775 /opt/quake/id1/*.pak ; chgrp users /opt/quake/id1/*.pak'
- If you do not have the retail pak, copy /usr/share/nquake/gpl_maps.pk3 to /opt/quake/id1/
- and do (as root): chmod 0775 /opt/quake/id1/{*.pak,*.pk3} ; chgrp users /opt/quake/id1/{*.pak,*.pk3)"
- echo
+ and do (as root): chmod 0775 /opt/quake/id1/*.pak ; chgrp users /opt/quake/id1/*.pak'"
+ echo "Also remember to run nquakesv-init as the user(s) that will be running nquakesv."
- if [ -f "/opt/quake/ezquake/pak.lst" ];
+ if [ ! -f "/opt/quake/id1/pak0.pak" ];
then
- if ! egrep -qE '^nquake_ezquake.pk3' /opt/quake/ezquake/pak.lst;
- then
- sed -i.no_nquake -e '1s/^/nquake_ezquake.pk3\r\n/' /opt/quake/ezquake/pak.lst
- cat -n /opt/quake/ezquake/pak.lst | sort -k2 -k1n | uniq -f1 | sort -nk1,1 | cut -f2- > /tmp/ezquake.tmp
- cat /tmp/ezquake.tmp > /opt/quake/ezquake/pak.lst
- rm /tmp/ezquake.tmp
- fi
- else
- echo "Whoops. You might be doing something naughty, as I can't inject the nquake-provided ezquake.pk3 into the proper pak.lst."
- echo "Things *might* or *might not* work quite as expected."
+ cp /opt/quake/id1/pak0.pak.DEMO /opt/quake/id1/pak0.pak
fi
}
@@ -32,13 +21,3 @@ post_upgrade() {
}
-post_remove() {
- # Undo our stupid clever little hack.
- if [ -f "/opt/quake/ezquake/pak.lst.no_nquake" ];
- then
- mv /opt/quake/ezquake/pak.lst.no_nquake /opt/quake/ezquake/pak.lst
- else
- echo "Weird; I can't seem to remove our injected entry from the proper pak.lst."
- echo "You weren't doing something naughty like arbitrarily deleting files from your filesystem, were you?"
- fi
-}