[AUR] SWI-Prolog for SHaring: a SWI-Prolog web IDE integrated with the cplint suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
863 B

post_install() {
# Add swish user and group with a home directory (which will contain all
# the packs).
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
# Add swish user to the rserve group. If this is not done, access to the
# socket will be forbidden.
gpasswd -a swish rserve >/dev/null
chown -R swish:swish /usr/share/swish-cplint
printf "\n\n%s\n\n" "To initialize and download all the necessary \
components you must run: \
sudo -u swish swish-cplint -i"
printf "%s\n\n" "You can then start and enable \
swish-cplint.service to run the server."
post_remove() {
printf "\n\n%s\n" "You can remove /home/swish."
printf "%s\n\n" "You can also remove swish user and group."