Skip to content

Commit

Permalink
Use which command to dynamically set package install home
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Feb 6, 2024
1 parent 11e9c56 commit 2922f70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions task-runner.sh.command
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

banner="Snappy Food"
projectHome=$(cd $(dirname $0); pwd)
apacheCfg=/usr/local/etc/httpd
apacheLog=/usr/local/var/log/httpd/error_log
pkgInstallHome=$(dirname $(dirname $(which httpd)))
apacheCfg=$pkgInstallHome/etc/httpd
apacheLog=$pkgInstallHome/var/log/httpd/error_log
webDocRoot=$(grep ^DocumentRoot $apacheCfg/httpd.conf | awk -F'"' '{ print $2 }')

setupTools() {
Expand Down

0 comments on commit 2922f70

Please sign in to comment.