hijnu commited on
Commit
0a4cc64
·
verified ·
1 Parent(s): 6317e8e

Update import-db.sh

Browse files
Files changed (1) hide show
  1. import-db.sh +3 -2
import-db.sh CHANGED
@@ -16,10 +16,11 @@ if [ "$DB_IMPORT" = "yes" ]; then
16
 
17
  # 下载 dump 文件
18
  echo "正在下载数据库备份文件..."
19
- if curl -u "$WEBDAV_USER:$WEBDAV_PASSWORD" -f -o "$DUMP_FILE" "${WEBDAV_URL}/backup.dump"; then
20
  echo "下载成功."
21
  else
22
- echo "下载失败. 无法从 ${WEBDAV_URL}/backup.dump 获取数据库备份文件.$WEBDAV_USER:$WEBDAV_PASSWORD"
 
23
  exit 1
24
  fi
25
 
 
16
 
17
  # 下载 dump 文件
18
  echo "正在下载数据库备份文件..."
19
+ if curl -u "$WEBDAV_USER:$WEBDAV_PASSWORD" -f -o "$DUMP_FILE" "${WEBDAV_URL}backup.dump"; then
20
  echo "下载成功."
21
  else
22
+ echo "下载失败. 无法从 ${WEBDAV_URL}backup.dump 获取数据库备份文件.用于认证的用户名为$WEBDAV_USER"
23
+ echo "跳过数据库导入流程..."
24
  exit 1
25
  fi
26