diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-07-28 16:37:30 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-07-28 16:37:30 -0300 |
commit | 749931b987f1e81d31c14e18c43081f44b5a2bca (patch) | |
tree | a4a2c9d8394f4a733efcf50ff2bf9318ce5de295 /pcr/postsrsd/postsrsd.install | |
parent | cec8a1cddabfaa4cc9f56631a50a028e1dbd03de (diff) | |
parent | 1f1c232541ccc261b8484cc4d72039b36ba323d2 (diff) | |
download | abslibre-749931b987f1e81d31c14e18c43081f44b5a2bca.tar.gz abslibre-749931b987f1e81d31c14e18c43081f44b5a2bca.tar.bz2 abslibre-749931b987f1e81d31c14e18c43081f44b5a2bca.zip |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/~git/abslibre
Diffstat (limited to 'pcr/postsrsd/postsrsd.install')
-rw-r--r-- | pcr/postsrsd/postsrsd.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pcr/postsrsd/postsrsd.install b/pcr/postsrsd/postsrsd.install new file mode 100644 index 000000000..b8e7f8d5a --- /dev/null +++ b/pcr/postsrsd/postsrsd.install @@ -0,0 +1,15 @@ +post_install() { + useradd -r -g mail -d / postsrsd + chown -R postsrsd:root etc/postsrsd + + [ -e /etc/postsrsd/postsrsd.secret ] || dd if=/dev/urandom bs=18 count=1 status=none | base64 > /etc/postsrsd/postsrsd.secret + chown postsrsd:root /etc/postsrsd/postsrsd.secret + chmod 400 /etc/postsrsd/postsrsd.secret + cat << _EOF +Don't forget to set your domainname in /etc/postsrsd/postsrsd.conf +_EOF +} + +post_remove() { + userdel postsrsd +} |