Skip to content

Commit ecc6d42

Browse files
authored
Remove duplicate line (#3927)
* Remove duplicate lines from pgadmin shell script
1 parent dd4674c commit ecc6d42

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

internal/pgadmin/reconcile.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ RED="\033[0;31m"
4343
GREEN="\033[0;32m"
4444
RESET="\033[0m"
4545
46-
CRUNCHY_DIR=${CRUNCHY_DIR:-'/opt/crunchy'}
47-
4846
function enable_debugging() {
4947
if [[ ${CRUNCHY_DEBUG:-false} == "true" ]]
5048
then
@@ -130,8 +128,6 @@ then
130128
err_check "$?" "pgAdmin4 Database Setup" "Could not create pgAdmin4 database: \n$(cat /tmp/pgadmin4.stderr)"
131129
fi
132130
133-
cd ${PGADMIN_DIR?}
134-
135131
echo_info "Starting Apache web server.."
136132
/usr/sbin/httpd -D FOREGROUND &
137133
echo $! > $APACHE_PIDFILE

internal/pgadmin/reconcile_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ containers:
117117
GREEN="\033[0;32m"
118118
RESET="\033[0m"
119119
120-
CRUNCHY_DIR=${CRUNCHY_DIR:-'/opt/crunchy'}
121-
122120
function enable_debugging() {
123121
if [[ ${CRUNCHY_DEBUG:-false} == "true" ]]
124122
then
@@ -204,8 +202,6 @@ containers:
204202
err_check "$?" "pgAdmin4 Database Setup" "Could not create pgAdmin4 database: \n$(cat /tmp/pgadmin4.stderr)"
205203
fi
206204
207-
cd ${PGADMIN_DIR?}
208-
209205
echo_info "Starting Apache web server.."
210206
/usr/sbin/httpd -D FOREGROUND &
211207
echo $! > $APACHE_PIDFILE
@@ -355,8 +351,6 @@ containers:
355351
GREEN="\033[0;32m"
356352
RESET="\033[0m"
357353
358-
CRUNCHY_DIR=${CRUNCHY_DIR:-'/opt/crunchy'}
359-
360354
function enable_debugging() {
361355
if [[ ${CRUNCHY_DEBUG:-false} == "true" ]]
362356
then
@@ -442,8 +436,6 @@ containers:
442436
err_check "$?" "pgAdmin4 Database Setup" "Could not create pgAdmin4 database: \n$(cat /tmp/pgadmin4.stderr)"
443437
fi
444438
445-
cd ${PGADMIN_DIR?}
446-
447439
echo_info "Starting Apache web server.."
448440
/usr/sbin/httpd -D FOREGROUND &
449441
echo $! > $APACHE_PIDFILE

0 commit comments

Comments
 (0)