rename generate-envrc to generate-env

Signed-off-by: Gaurav Gahlot <gauravgahlot0107@gmail.com>
This commit is contained in:
Gaurav Gahlot 2021-04-16 22:21:10 +05:30
parent 712f3eb38a
commit c40086d221
No known key found for this signature in database
GPG Key ID: 1A9A68577495C60C
6 changed files with 8 additions and 8 deletions

View File

@ -59,7 +59,7 @@ const headerFile = `#!/bin/bash
# This file is generated by an utility called bump-version in
# tinkerbell/sandbox.
# This file gets used from generate-envrc.sh but it is also used standalone by
# This file gets used from generate-env.sh but it is also used standalone by
# automation that wants to get the version of the programs currently supported
# in sandbox

View File

@ -2,7 +2,7 @@
# This file is generated by an utility called bump-version in
# tinkerbell/sandbox.
# This file gets used from generate-envrc.sh but it is also used standalone by
# This file gets used from generate-env.sh but it is also used standalone by
# automation that wants to get the version of the programs currently supported
# in sandbox

View File

@ -57,8 +57,8 @@ resource "null_resource" "tink_directory" {
}
provisioner "file" {
source = "../../generate-envrc.sh"
destination = "/root/tink/generate-envrc.sh"
source = "../../generate-env.sh"
destination = "/root/tink/generate-env.sh"
}
provisioner "file" {

View File

@ -35,7 +35,7 @@ main() (
export DEBIAN_FRONTEND=noninteractive
if [ ! -f ./.env ]; then
./generate-envrc.sh eth1 >.env
./generate-env.sh eth1 >.env
fi
# shellcheck disable=SC1091

View File

@ -44,7 +44,7 @@ generate_password() (
head -c 12 /dev/urandom | sha256sum | cut -d' ' -f1
)
generate_envrc() (
generate_env() (
local tink_interface=$1
validate_tinkerbell_network_interface "$tink_interface"
@ -99,7 +99,7 @@ main() (
exit 1
fi
generate_envrc "$1"
generate_env "$1"
)
main "$@"

View File

@ -490,7 +490,7 @@ do_setup() (
check_prerequisites "$lsb_dist" "$lsb_version"
if [ ! -f "$ENV_FILE" ]; then
echo "$ERR Run './generate-envrc.sh network-interface > \"$ENV_FILE\"' before continuing."
echo "$ERR Run './generate-env.sh network-interface > \"$ENV_FILE\"' before continuing."
exit 1
fi