File tree Expand file tree Collapse file tree 2 files changed +3
-25
lines changed
ansible/files/admin_api_scripts Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ function complete_pg_upgrade {
60
60
61
61
if [ -d /data/sql ]; then
62
62
for FILE in /data/sql/* .sql; do
63
- run_sql -f $FILE
63
+ if [ -f " $FILE " ]; then
64
+ run_sql -f $FILE
65
+ fi
64
66
done
65
67
fi
66
68
Original file line number Diff line number Diff line change @@ -24,30 +24,6 @@ run_sql() {
24
24
psql -h localhost -U supabase_admin -d postgres -c " $STATEMENT "
25
25
}
26
26
27
- function shutdown_services {
28
- if [[ $( systemctl is-active gotrue) == " active" ]]; then
29
- echo " stopping gotrue"
30
- systemctl stop gotrue || true
31
- fi
32
-
33
- if [[ $( systemctl is-active postgrest) == " active" ]]; then
34
- echo " stopping postgrest"
35
- systemctl stop postgrest || true
36
- fi
37
- }
38
-
39
- function start_services {
40
- if [[ $( systemctl is-active gotrue) == " inactive" ]]; then
41
- echo " starting gotrue"
42
- systemctl start gotrue || true
43
- fi
44
-
45
- if [[ $( systemctl is-active postgrest) == " inactive" ]]; then
46
- echo " starting postgrest"
47
- systemctl start postgrest || true
48
- fi
49
- }
50
-
51
27
cleanup () {
52
28
UPGRADE_STATUS=${1:- " failed" }
53
29
EXIT_CODE=${?:- 0}
You can’t perform that action at this time.
0 commit comments