Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
silentpete committed Oct 22, 2017
1 parent e400e52 commit 517ab2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions root/opt/httpd/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ function error () {

function adjust_httpd_conf_servername () {
if [[ ${SERVERNAME} ]]; then
info "adding ${SERVERNAME} to ${http_conf_filepath}"
sed -i 's|#ServerName.*|ServerName $SERVERNAME|' $http_conf_filepath
else
info "adding ${HOSTNAME} to ${http_conf_filepath}"
sed -i 's|#ServerName.*|ServerName ${HOSTNAME}|' $http_conf_filepath
fi
}
Expand Down
1 change: 0 additions & 1 deletion root/opt/httpd/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash

echo -e "\e[32mINFO sourcing files in $SCRIPTS_DIR\e[0m"
for VAR in $(find ${SCRIPTS_DIR} -type f -name "*.sh"); do echo -e "\e[32mINFO sourcing $VAR\e[0m"; source $VAR; done;

# Run a Function
Expand Down

0 comments on commit 517ab2c

Please sign in to comment.