fix to run composer as proper user
authorChris Koeritz <fred@gruntose.com>
Tue, 27 Feb 2018 20:19:05 +0000 (15:19 -0500)
committerChris Koeritz <fred@gruntose.com>
Tue, 27 Feb 2018 20:19:05 +0000 (15:19 -0500)
scripts/site_avenger/revamp_cakelampvm.sh

index c1fa3b2b5e14a5cb2f658fb9aca3aa2577cee404..ecdd96d4807f8ad27eaf2a75c0dc44342e2501ca 100644 (file)
@@ -326,7 +326,7 @@ sep
 
 echo Adding site avenger packages to composer.
 # add in site avenger dependencies so we can build avcore properly.
-composer config -g repositories.siteavenger composer https://packages.siteavenger.com/
+sudo -u $(logname) composer config -g repositories.siteavenger composer https://packages.siteavenger.com/
 
 ##############
 ##############