Skip to content

Commit 16bc335

Browse files
author
Jacek Gębal
committed
Fixing issue with install script
1 parent 51066dd commit 16bc335

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

.github/scripts/install_demo_project.sh

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,38 @@ 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@${DB_URL} AS SYSDBA <<- SQL
10-
PROMPT Connected to ${DB_URL}
11-
PROMPT Creating Database User ${DB_USER}
12-
PROMPT create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
13-
PROMPT grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
14-
PROMPT grant connect to ${DB_USER};
15-
PROMPT grant select any dictionary to ${DB_USER};
16-
create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
17-
grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
18-
grant connect to ${DB_USER};
19-
grant select any dictionary to ${DB_USER};
20-
exit
21-
SQL
9+
sqlplus -S -L sys/oracle@${DB_URL} AS SYSDBA <<- SQL
10+
PROMPT Connected to ${DB_URL}
11+
PROMPT Creating Database User ${DB_USER}
12+
PROMPT create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
13+
PROMPT grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
14+
PROMPT grant connect to ${DB_USER};
15+
PROMPT grant select any dictionary to ${DB_USER};
16+
create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
17+
grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
18+
grant connect to ${DB_USER};
19+
grant select any dictionary to ${DB_USER};
20+
exit
21+
SQL
2222
23-
cd /${PROJECT_FILE}
24-
sqlplus -S -L ${DB_USER}/${DB_PASS}@${DB_URL} <<- SQL
25-
whenever sqlerror exit failure rollback
26-
whenever oserror exit failure rollback
27-
PROMPT Connected to ${DB_URL}
28-
PROMPT Installing sources of demo project into schema ${DB_USER}
29-
@source/install.sql
30-
exit
31-
SQL
23+
cd /${PROJECT_FILE}
24+
sqlplus -S -L ${DB_USER}/${DB_PASS}@${DB_URL} <<- SQL
25+
whenever sqlerror exit failure rollback
26+
whenever oserror exit failure rollback
27+
PROMPT Connected to ${DB_URL}
28+
PROMPT Installing sources of demo project into schema ${DB_USER}
29+
@source/install.sql
30+
exit
31+
SQL
3232
33-
sqlplus -S -L ${DB_USER}/${DB_PASS}@${DB_URL} <<- SQL
34-
whenever sqlerror exit failure rollback
35-
whenever oserror exit failure rollback
36-
PROMPT Connected to ${DB_URL}
37-
PROMPT Installing tests for demo project into schema ${DB_USER}
38-
@test/install.sql
39-
exit
40-
SQL
33+
sqlplus -S -L ${DB_USER}/${DB_PASS}@${DB_URL} <<- SQL
34+
whenever sqlerror exit failure rollback
35+
whenever oserror exit failure rollback
36+
PROMPT Connected to ${DB_URL}
37+
PROMPT Installing tests for demo project into schema ${DB_USER}
38+
@test/install.sql
39+
exit
40+
SQL
4141
EOF
4242

4343
docker cp ./${PROJECT_FILE} oracle:/${PROJECT_FILE}

0 commit comments

Comments
 (0)