diff options
author | Andrea Scarpino | 2015-06-10 18:57:08 +0200 |
---|---|---|
committer | Andrea Scarpino | 2015-06-10 18:57:08 +0200 |
commit | 0e8e91af05fb55efa5c43c5dbbf4adcff227803d (patch) | |
tree | ff692bdf3f7149f642df6dc25090bd550eff9e03 /dowse.install | |
download | aur-0e8e91af05fb55efa5c43c5dbbf4adcff227803d.tar.gz |
Initial import
Diffstat (limited to 'dowse.install')
-rw-r--r-- | dowse.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dowse.install b/dowse.install new file mode 100644 index 000000000000..4f6a64ffdf70 --- /dev/null +++ b/dowse.install @@ -0,0 +1,22 @@ +post_install() { + getent group dowse >/dev/null 2>&1 || groupadd -r dowse + getent passwd dowse >/dev/null 2>&1 || useradd -g dowse -d /usr/share/dowse -s /bin/zsh -r dowse + chown -R dowse:dowse /usr/share/dowse + + echo "==> In order to configure dowse you need to adjust both 'network' and 'settings' files" + echo " into dowse configuration dir: /usr/share/dowse/conf. See /usr/share/doc/dowse/conf" + echo " for exmaples." +} + +post_upgrade() { + post_install +} + +pre_remove() { + if getent passwd dowse >/dev/null 2>&1; then + userdel dowse + fi + if getent group dowse >/dev/null 2>&1; then + groupdel dowse + fi +} |