diff options
Diffstat (limited to 'build-scripts/helpers')
-rw-r--r-- | build-scripts/helpers | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build-scripts/helpers b/build-scripts/helpers index ec7f457..a778231 100644 --- a/build-scripts/helpers +++ b/build-scripts/helpers @@ -240,3 +240,16 @@ product2lamc_dev () { echo -n "$1";; esac } + +#Check if we are building on VPS +is_on_ec2() { + [ -e "/etc/cloud/cloud.cfg" ] +} + +get_build_config() { +if is_on_ec2; then + echo "/var/run/" +else + echo "/tmp/" +fi +} |