swish/.install

17 lines
450 B
Plaintext

post_install() {
# Add swish user and group.
getent group swish 1>/dev/null 2>/dev/null || groupadd -r swish >/dev/null
getent passwd swish 1>/dev/null 2>/dev/null || useradd -m -d /home/swish \
-r -g swish swish >/dev/null
chown -R swish:swish /usr/share/swish
printf "\n\n%s\n\n" "You can start and enable \
swish.service to run the server."
}
post_remove()
{
printf "\n\n%s\n\n" "You can remove swish user and group."
}