File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ KIBANA_PORT=5601
54
54
# # REMOTE REPOSITORY
55
55
GIT_SSH_URL = " [email protected] :cslant"
56
56
GIT_TOKEN =
57
+ DATABASE_FILE_NAME = cslant_blog
57
58
58
59
# ##################### DOMAIN SETTING ######################
59
60
CSLANT_DOMAIN = cslant.com.local
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ resource_database() {
41
41
echo ' » 🚀 Downloading database file... 🚀'
42
42
DATABASE_PATH=" $CURRENT_DIR /postgres/entry.d"
43
43
44
- if [ -f " $DATABASE_PATH /cslant_blog .sql" ]; then
44
+ if [ -f " $DATABASE_PATH /$DATABASE_FILE_NAME .sql" ]; then
45
45
echo " » Database file already exists"
46
46
echo ' '
47
47
return
@@ -50,5 +50,5 @@ resource_database() {
50
50
curl \
51
51
-H " Authorization: token $GITHUB_TOKEN " \
52
52
-L https://raw.githubusercontent.com/cslant-community/blog-storage/docker/database/postgres/cslant_blog.sql \
53
- -o " $DATABASE_PATH /cslant_blog .sql"
53
+ -o " $DATABASE_PATH /$DATABASE_FILE_NAME .sql"
54
54
}
Original file line number Diff line number Diff line change @@ -16,3 +16,6 @@ BLOG_PACKAGE_REPO_NAMES=(
16
16
' blog-api-package'
17
17
' blog-core'
18
18
)
19
+
20
+ # shellcheck disable=SC2034
21
+ DATABASE_FILE_NAME=${DATABASE_FILE_NAME:- cslant_blog}
You can’t perform that action at this time.
0 commit comments