diff options
author | Alexei Colin | 2016-03-03 14:54:16 -0500 |
---|---|---|
committer | Alexei Colin | 2016-03-03 14:54:16 -0500 |
commit | a3b998c3e43258ccbf7d26f59a4ef3108710a02e (patch) | |
tree | fc0b05a1c623927603b61379d80025a8ce0024b2 /zeronet.install | |
parent | 0342f8b4354bb1438c940cb9628e27f83bfd2af1 (diff) | |
download | aur-a3b998c3e43258ccbf7d26f59a4ef3108710a02e.tar.gz |
re-package so that package actually works
Diffstat (limited to 'zeronet.install')
-rw-r--r-- | zeronet.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/zeronet.install b/zeronet.install new file mode 100644 index 000000000000..891781a887d3 --- /dev/null +++ b/zeronet.install @@ -0,0 +1,20 @@ +post_install() { + getent passwd zeronet &>/dev/null || { + echo -n ">>> Creating zeronet user... " + useradd --system --user-group --home /opt/zeronet zeronet + echo "done" + } + post_upgrade +} + +post_upgrade() { + chown -R zeronet:zeronet /opt/zeronet +} + +pre_remove() { + getent passwd zeronet &>/dev/null && { + echo -n ">>> Removing zeronet user... " + userdel zeronet + echo "done" + } +} |