diff --git a/install-zammad.sh b/install-zammad.sh index 3d76c4f..0556988 100644 --- a/install-zammad.sh +++ b/install-zammad.sh @@ -5,10 +5,10 @@ set -e echo "installing zammad..." # crreate zammad user -useradd -M -d /home/zammad -s /bin/bash zammad +useradd -M -d "${ZAMMAD_DIR}" -s /bin/bash zammad # # git clone zammad -cd /home +cd $(dirname ${ZAMMAD_DIR}) git clone --depth 1 -b "${GIT_BRANCH}" "${GIT_URL}" # install zammad