From 28536f93dcfd0a5d93841851ca344569a3d36ac8 Mon Sep 17 00:00:00 2001 From: Hulk Date: Sat, 18 May 2019 12:03:34 +0800 Subject: [PATCH] Fix sqlite migration script. --- scripts/sqlite2mysql.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/sqlite2mysql.sh b/scripts/sqlite2mysql.sh index 960b420..9c4fccf 100755 --- a/scripts/sqlite2mysql.sh +++ b/scripts/sqlite2mysql.sh @@ -19,15 +19,15 @@ SEAHUB_DB='seahub-db.sql' ########## ccnet seafile_path=$(pwd) -if [ -f "${seafile_path}/ccnet/ccnet.conf" ]; then +if [ -f "${seafile_path}/conf/ccnet.conf" ]; then USER_MGR_DB=${seafile_path}/ccnet/PeerMgr/usermgr.db GRP_MGR_DB=${seafile_path}/ccnet/GroupMgr/groupmgr.db else - echo "${seafile_path}/ccnet/ccnet.conf does not exists." - read -p "Please provide your ccnet.conf path(e.g. /data/haiwen/ccnet/ccnet.conf): " ccnet_conf_path + echo "${seafile_path}/conf/ccnet.conf does not exists." + read -p "Please provide your ccnet.conf path(e.g. /data/haiwen/conf/ccnet.conf): " ccnet_conf_path if [ -f ${ccnet_conf_path} ]; then - USER_MGR_DB=$(dirname "${ccnet_conf_path}")/PeerMgr/usermgr.db - GRP_MGR_DB=$(dirname "${ccnet_conf_path}")/GroupMgr/groupmgr.db + USER_MGR_DB=$(dirname $(dirname "${ccnet_conf_path}"))/ccnet/PeerMgr/usermgr.db + GRP_MGR_DB=$(dirname $(dirname "${ccnet_conf_path}"))/ccnet/GroupMgr/groupmgr.db else echo "${ccnet_conf_path} does not exists, quit." exit 1