Skip to content

Commit

Permalink
Fix directory path in linux SDK config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinimurt committed Feb 26, 2020
1 parent 2cdbb68 commit c00556e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .yamato/config/LinuxBuildEnvironment-20170609.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[LinuxBuildEnvironment-20170609]
description=Unity Linux SDK 20170609
directory=/home/bokken/build/output/Unity-Technologies/mono/external/buildscripts/artifacts/Stevedore/linux-sdk-20170609/linux-sdk-20170609/LinuxBuildEnvironment-20170609
directory=/home/bokken/build/output/sources/external/buildscripts/artifacts/Stevedore/linux-sdk-20170609/linux-sdk-20170609/LinuxBuildEnvironment-20170609
personality=linux
users=bokken,builduser
groups=sudo
Expand Down
2 changes: 2 additions & 0 deletions external/buildscripts/build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,13 @@

if($ENV{YAMATO_PROJECT_ID})
{
print(">>> YAMATO_PROJECT_ID is set. Running on Yamato\n");
system('sudo', 'cp', "$monoroot/.yamato/config/LinuxBuildEnvironment-20170609.conf", '/etc/schroot/chroot.d/') eq 0 or die ("failed to copy conf file\n");
system('sudo', 'cat', '/etc/schroot/chroot.d/LinuxBuildEnvironment-20170609.conf') eq 0 or die ("failed to list contents on /etc/schroot/chroot.d\n");
}
else
{
print(">>> YAMATO_PROJECT_ID is not set. Running outside Yamato\n");
system("sed 's,^directory=.*,directory=$depsSdkFinal/$schroot,' \"$depsSdkFinal/$schroot.conf\" | sudo tee /etc/schroot/chroot.d/$schroot.conf") eq 0 or die ("failed to deploy Linux SDK\n");
}
}
Expand Down

0 comments on commit c00556e

Please sign in to comment.