Skip to content

Commit

Permalink
Follow vvv function name convention #7
Browse files Browse the repository at this point in the history
  • Loading branch information
pentatonicfunk committed Oct 17, 2021
1 parent 4acaa62 commit f0ae39a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/homebin/vagrant_up
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi

# /etc/host doesn't survive restart on docker
vvv_info " * Reinit /etc/hosts"
re_init_etc_hosts
vvv_update_guest_hosts

vvv_info " * Restarting Nginx"
sudo service nginx restart
Expand Down
8 changes: 4 additions & 4 deletions provision/provision-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -547,16 +547,16 @@ vvv_apt_package_remove() {
export -f vvv_apt_package_remove

# Docker additional helpers
function get_vvv_sites() {
function vvv_get_sites() {
local sites=$(shyaml -q keys "sites" <${VVV_CONFIG})
echo "${sites}"
}

function re_init_etc_hosts() {
function vvv_update_guest_hosts() {
if test -f "/tmp/site-hosts"; then
sudo rm /tmp/site-hosts
fi
local SITES=$(get_vvv_sites)
local SITES=$(vvv_get_sites)
for SITE in $SITES; do
SITE_ESCAPED="${SITE//./\\.}"
VVV_SITE_NAME=${SITE}
Expand All @@ -574,4 +574,4 @@ function re_init_etc_hosts() {
fi
}

export -f re_init_etc_hosts
export -f vvv_update_guest_hosts

0 comments on commit f0ae39a

Please sign in to comment.