Skip to content

Commit abad5e9

Browse files
author
Jacek Gębal
committed
Update of deployment scripts
1 parent 5f8ebdb commit abad5e9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/scripts/create_api_user.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -ev
33

4-
sqlplus -S -L sys/oracle@//127.0.0.1:1521/xe AS SYSDBA <<EOF
4+
sqlplus -S -L sys/oracle@//127.0.0.1:1521/${SERVICE_NAME} AS SYSDBA <<EOF
55
create user api identified by api
66
quota unlimited on USERS
77
default tablespace USERS;

.github/scripts/install_demo_project.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ PROJECT_FILE="utPLSQL-demo-project"
66
git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL-demo-project.git
77

88
cat > demo_project.sh.tmp <<EOF
9-
sqlplus -S -L sys/oracle@//127.0.0.1:1521/xe AS SYSDBA <<SQL
9+
sqlplus -S -L sys/oracle@//127.0.0.1:1521/${SERVICE_NAME} AS SYSDBA <<SQL
1010
create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
1111
grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
1212
grant select any dictionary to ${DB_USER};
1313
exit
1414
SQL
1515
1616
cd /${PROJECT_FILE}
17-
sqlplus -S -L ${DB_USER}/${DB_PASS}@//127.0.0.1:1521/xe <<SQL
17+
sqlplus -S -L ${DB_USER}/${DB_PASS}@//127.0.0.1:1521/${SERVICE_NAME} <<SQL
1818
whenever sqlerror exit failure rollback
1919
whenever oserror exit failure rollback
2020
@source/install.sql
2121
exit
2222
SQL
2323
24-
sqlplus -S -L ${DB_USER}/${DB_PASS}@//127.0.0.1:1521/xe <<SQL
24+
sqlplus -S -L ${DB_USER}/${DB_PASS}@//127.0.0.1:1521/${SERVICE_NAME} <<SQL
2525
whenever sqlerror exit failure rollback
2626
whenever oserror exit failure rollback
2727
@test/install.sql

.github/scripts/install_utplsql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ chmod -R go+w ./${UTPLSQL_FILE}/{source,examples}
1515
# Create a temporary install script.
1616
cat > install.sh.tmp <<EOF
1717
cd /${UTPLSQL_FILE}/source
18-
sqlplus -S -L sys/oracle@//127.0.0.1:1521/xe AS SYSDBA @install_headless.sql ut3 ut3 users
18+
sqlplus -S -L sys/oracle@//127.0.0.1:1521/${SERVICE_NAME} AS SYSDBA @install_headless.sql ut3 ut3 users
1919
EOF
2020

2121
# Copy utPLSQL files to the container and install it.

0 commit comments

Comments
 (0)