diff options
author | jpope | 2015-07-10 22:32:27 -0500 |
---|---|---|
committer | jpope | 2015-07-10 22:32:27 -0500 |
commit | 6f49c777d24c0d3e557e10aa7a627203bf2355fb (patch) | |
tree | 5b80c71138ad061ddbd5baa0e18af1bad7322ce8 /pumpio-git.install | |
download | aur-6f49c777d24c0d3e557e10aa7a627203bf2355fb.tar.gz |
first aur4 package
Diffstat (limited to 'pumpio-git.install')
-rw-r--r-- | pumpio-git.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pumpio-git.install b/pumpio-git.install new file mode 100644 index 000000000000..dee6a4d6e5f7 --- /dev/null +++ b/pumpio-git.install @@ -0,0 +1,21 @@ +pumpuser=pumpio +pumphome=/usr/share/webapps/pumpio + +_chown() { + chown -R $pumpuser:$pumpuser $pumphome +} + +post_install() { + getent passwd $pumpuser &> /dev/null || useradd -r -d $pumphome -s /bin/bash $pumpuser + _chown + echo 'Edit the file /etc/webapps/pumpio/pump.io.json as needed. Please look over the documentation at http://pump.io/#configuration' +} + +post_upgrade() { + post_install +} + +post_remove() { + getent passwd $pumpuser &> /dev/null && userdel -f $pumpuser + return 0 +} |