File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,14 @@ if ( [ -f "$DATADIR/PG_VERSION" ] && [ "$PG_MAJOR" != "$(cat "$DATADIR/PG_VERSIO
92
92
93
93
# Check if the line we grep for later on is there
94
94
GREP_STRING=' Name: oc_appconfig; Type: TABLE; Schema: public; Owner:'
95
- if ! grep -q " $GREP_STRING " " $DUMP_FILE " ; then
95
+ if ! grep -qa " $GREP_STRING " " $DUMP_FILE " ; then
96
96
echo " The needed oc_appconfig line is not there which is unexpected."
97
97
echo " Please report this to https://github.com/nextcloud/all-in-one/issues. Thanks!"
98
98
exit 1
99
99
fi
100
100
101
101
# Get the Owner
102
- DB_OWNER=" $( grep " $GREP_STRING " " $DUMP_FILE " | grep -oP ' Owner:.*$' | sed ' s|Owner:||;s| ||g' ) "
102
+ DB_OWNER=" $( grep -a " $GREP_STRING " " $DUMP_FILE " | grep -oP ' Owner:.*$' | sed ' s|Owner:||;s| ||g' ) "
103
103
if [ " $DB_OWNER " = " $POSTGRES_USER " ]; then
104
104
echo " Unfortunately was the found database owner of the dump file the same as the POSTGRES_USER $POSTGRES_USER "
105
105
echo " It is not possible to import a database dump from this database owner."
You can’t perform that action at this time.
0 commit comments