diff options
Diffstat (limited to 'www/abyssws/pkg-install')
-rw-r--r-- | www/abyssws/pkg-install | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/www/abyssws/pkg-install b/www/abyssws/pkg-install deleted file mode 100644 index 738341e4f1d6..000000000000 --- a/www/abyssws/pkg-install +++ /dev/null @@ -1,53 +0,0 @@ -#! /bin/sh - -# $FreeBSD$ - -PATH=/bin:/usr/sbin -WSHOME=${PKG_PREFIX}/lib/abyssws - -USER=abyssws -GROUP=${USER} - -case $2 in -PRE-INSTALL) - if pw group show "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if pw groupadd ${GROUP}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi - fi - - if pw user show "${USER}" 2>/dev/null; then - echo "You already have a user \"${USER}\", so I will use it." - else - if pw useradd ${USER} -g ${GROUP} -h - \ - -d ${WSHOME} -c "Abyss Web Server" - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi - fi - - if ! [ -x ~${USER} ] ; then - mkdir -p ${WSHOME} - chown ${USER}:${GROUP} ${WSHOME} - fi - - - ;; - -POST-INSTALL) - chown -R ${USER}:${GROUP} ${WSHOME} - chmod -R u+w,o-rx ${WSHOME} - chmod u+s ${WSHOME}/abyssws - - - ;; - -esac |