jumping to home dir
authorChris Koeritz <fred@gruntose.com>
Thu, 1 Mar 2018 17:43:18 +0000 (12:43 -0500)
committerChris Koeritz <fred@gruntose.com>
Thu, 1 Mar 2018 17:43:18 +0000 (12:43 -0500)
composer addition gets confused if within a project, and the setting we are adding with this step is supposed to be for whole account.  jumping to home dir first seems to fix it.

scripts/site_avenger/revamp_cakelampvm.sh

index ecdd96d4807f8ad27eaf2a75c0dc44342e2501ca..397c6764e5d7b0530660151158503ed9a40fbb8b 100644 (file)
@@ -326,7 +326,9 @@ sep
 
 echo Adding site avenger packages to composer.
 # add in site avenger dependencies so we can build avcore properly.
+pushd ~ &>/dev/null
 sudo -u $(logname) composer config -g repositories.siteavenger composer https://packages.siteavenger.com/
+popd &>/dev/null
 
 ##############
 ##############