diff options
author | mm <mm@FreeBSD.org> | 2007-08-02 21:28:05 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2007-08-02 21:28:05 +0800 |
commit | 53f4ed48d2bed0977af686bafa96bc493f1ed4c8 (patch) | |
tree | c5a928cb1dcadf995558385a4d963b8ee1c14bf5 /www/openacs | |
parent | 97abc0302d3b8d47a4749fbd1ebcdb1844af839c (diff) | |
download | freebsd-ports-gnome-53f4ed48d2bed0977af686bafa96bc493f1ed4c8.tar.gz freebsd-ports-gnome-53f4ed48d2bed0977af686bafa96bc493f1ed4c8.tar.zst freebsd-ports-gnome-53f4ed48d2bed0977af686bafa96bc493f1ed4c8.zip |
- Missed in last commit
Approved by: garga (mentor, implicit)
Diffstat (limited to 'www/openacs')
-rw-r--r-- | www/openacs/files/pkg-install.in | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/www/openacs/files/pkg-install.in b/www/openacs/files/pkg-install.in index 30b088479432..b75f60a97365 100644 --- a/www/openacs/files/pkg-install.in +++ b/www/openacs/files/pkg-install.in @@ -9,8 +9,12 @@ OPENACS_GROUP=%%OPENACS_GROUP%% OPENACS_USER=%%OPENACS_USER%% OPENACSBASE=%%OPENACSBASE%% -if ! pw groupshow "${OPENACS_GROUP}" 2>/dev/null 1>&2; then - if pw groupadd ${OPENACS_GROUP}; then +CHMOD=%%CHMOD%% +CHOWN=%%CHOWN%% +PW=%%PW%% + +if ! ${PW} groupshow "${OPENACS_GROUP}" 2>/dev/null 1>&2; then + if ${PW} groupadd ${OPENACS_GROUP}; then echo "Added group \"${OPENACS_GROUP}\"." else echo "Adding group \"${OPENACS_GROUP}\" failed..." @@ -18,8 +22,8 @@ if ! pw groupshow "${OPENACS_GROUP}" 2>/dev/null 1>&2; then fi fi -if ! pw usershow "${OPENACS_USER}" 2>/dev/null 1>&2; then - if pw useradd ${OPENACS_USER} -g ${OPENACS_GROUP} -h - \ +if ! ${PW} usershow "${OPENACS_USER}" 2>/dev/null 1>&2; then + if ${PW} useradd ${OPENACS_USER} -g ${OPENACS_GROUP} -h - \ -s "/bin/sh" -d "${OPENACSBASE}" \ -c "OpenACS instance pseudo-user"; \ then @@ -30,5 +34,5 @@ if ! pw usershow "${OPENACS_USER}" 2>/dev/null 1>&2; then fi fi echo "Seting permissions of files" - chmod -R 770 ${OPENACSBASE} - chown -R ${OPENACS_USER}:${OPENACS_GROUP} ${OPENACSBASE} + ${CHMOD} -R 770 ${OPENACSBASE} + ${CHOWN} -R ${OPENACS_USER}:${OPENACS_GROUP} ${OPENACSBASE} |