Skip to content

Commit dbb7195

Browse files
committed
better init script
1 parent b0eb3cc commit dbb7195

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
init-pgvector() {
4+
# ref: https://github.com/pgvector/pgvector?tab=readme-ov-file#linux-and-mac
5+
cd /tmp
6+
git clone --branch v0.7.4 https://github.com/pgvector/pgvector.git
7+
cd pgvector
8+
make
9+
make install # may need sudo
10+
}
11+
12+
init-pgvector

scripts/init/init-postgres.sh scripts/init/postgresql/init-super-user.sh

-11
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,4 @@ init-postgres-user() {
3636
}
3737

3838

39-
init-pgvector() {
40-
# ref: https://github.com/pgvector/pgvector?tab=readme-ov-file#linux-and-mac
41-
cd /tmp
42-
git clone --branch v0.7.4 https://github.com/pgvector/pgvector.git
43-
cd pgvector
44-
make
45-
make install # may need sudo
46-
}
47-
48-
4939
init-postgres-user
50-
init-pgvector
File renamed without changes.

0 commit comments

Comments
 (0)