diff options
Diffstat (limited to 'install')
-rw-r--r-- | install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/install b/install new file mode 100644 index 000000000000..2f952587ed71 --- /dev/null +++ b/install @@ -0,0 +1,17 @@ +post_install() { + groupadd -g 138 shout-irc &>/dev/null + useradd -u 138 -g shout-irc -d /etc/shout-irc -s /bin/false shout-irc &> /dev/null + chown -R shout-irc:shout-irc etc/shout-irc &> /dev/null + chmod -R 700 etc/shout-irc &> /dev/null +} + +post_upgrade() { + getent group shout-irc &>/dev/null || groupadd -g 138 shout-irc &>/dev/null + getent passwd shout-irc &>/dev/null || useradd -u 138 -g shout-irc -d /etc/shout-irc -s /bin/false shout-irc &> /dev/null + chown -R shout-irc:shout-irc etc/shout-irc &> /dev/null +} + +pre_remove() { + getent passwd shout-irc &>/dev/null && userdel shout-irc &> /dev/null + getent group shout-irc &>/dev/null && groupdel shout-irc &> /dev/null +} |