summarylogtreecommitdiffstats
path: root/dustforce-hib-dustmod.install
diff options
context:
space:
mode:
authorJoseph Lansdowne2016-09-04 12:46:23 +0100
committerJoseph Lansdowne2016-09-04 12:46:23 +0100
commit090060d5aed8d31bc11570b28362fe87f5471fba (patch)
tree24823df0b96d768281f73b2f3d47a104c5c15808 /dustforce-hib-dustmod.install
downloadaur-090060d5aed8d31bc11570b28362fe87f5471fba.tar.gz
1.0+h20141222
Diffstat (limited to 'dustforce-hib-dustmod.install')
-rw-r--r--dustforce-hib-dustmod.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/dustforce-hib-dustmod.install b/dustforce-hib-dustmod.install
new file mode 100644
index 00000000000..4653def9116
--- /dev/null
+++ b/dustforce-hib-dustmod.install
@@ -0,0 +1,17 @@
+# make the program files writable by the 'dustmod' group to allow the dustmod
+# auto-updater to work
+
+post_install () {
+ groupadd -f dustmod
+ chgrp -R dustmod /opt/dustforce-dustmod
+ chmod -R g+w /opt/dustforce-dustmod
+
+ echo "To allow the dustmod auto-updater to work," \
+ "add your user to the 'dustmod' group."
+}
+
+post_remove () {
+ groupdel dustmod
+ # remove any files created by the auto-updater
+ rm -rf /opt/dustforce-dustmod
+}