Skip to content

Commit

Permalink
ATOR-187 Update auth dirs script
Browse files Browse the repository at this point in the history
  • Loading branch information
floodcode committed Mar 12, 2024
1 parent 1fb68fd commit dfe56f0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
17 changes: 14 additions & 3 deletions scripts/ci/update-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ set -x

pkg_env="$1"; shift

# Update version in configure.ac

if ! [ -e configure.ac ]; then
echo >&2 "Did not find configure.ac"
exit 1
Expand All @@ -31,9 +33,18 @@ if [ "$(grep -c "AC_INIT.*-$pkg_env" configure.ac)" != 1 ]; then
exit 1
fi

auth_dirs_env="stage"
# Copy auth dirs file for desired env (live by default)

auth_dirs_file="auth_dirs.inc"

if [ "$pkg_env" = "dev" ] || [ "$pkg_env" = "unstable-dev" ]; then
auth_dirs_env="dev"
auth_dirs_file="auth_dirs_dev.inc"
fi

cp "src/app/config/auth_dirs_${auth_dirs_env}.inc" src/app/config/auth_dirs.inc
if [ "$pkg_env" = "stage" ]; then
auth_dirs_file="auth_dirs_stage.inc"
fi

if [ "$auth_dirs_file" != "auth_dirs.inc" ]; then
cp "src/app/config/${auth_dirs_file}" src/app/config/auth_dirs.inc
fi
18 changes: 9 additions & 9 deletions src/app/config/auth_dirs.inc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"ATORDAeucdev orport=9001 "
"v3ident=4ECBB2E310BEE9D3E840F569747CFB55DEB6B00F "
"49.13.145.234:9030 7652FE7D5B120F1D6A747FF11FF2F423C6428789",
"ATORDAusedev orport=9001 "
"v3ident=5CECD90F9BF611E5010F718FC0FC12C1B470B746 "
"5.161.108.187:9030 108915505A15CAF5DF9DDEC3FCB498953419D1F9",
"ATORDAuswdev orport=9001 "
"v3ident=A6BFD7BA6F41883E044B5429788FFA4E47DD1257 "
"5.78.90.106:9030 54FC95706E969D4FC46974439D1D698AD1C84B64",
"ATORDAeuclive orport=9201 "
"v3ident=9425F567C631319350C6EEF65E775A8AC0699DA0 "
"49.13.145.234:9230 9F01AEC951F037664F8762D54E0EEA8E6809176A",
"ATORDAuselive orport=9201 "
"v3ident=6F3E34A99853CC3CB2D9E7A6FF8D64ED75C8B9E8 "
"5.161.108.187:9230 54849A361F8CED0D1B70B722CB8B33E9071E5561",
"ATORDAuswlive orport=9201 "
"v3ident=C30FBEF011CDFDDD3879BF2BA77A56274899B1BB "
"5.78.90.106:9230 2E397C3F4BC12B4F92940C2B92D4E091E82D2D31",

0 comments on commit dfe56f0

Please sign in to comment.