Created
December 23, 2016 17:19
-
-
Save BlackLotus/a031787f82407d39da67a5a96755c61f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- sqlite_to_mysql.sh.old 2016-12-23 18:16:32.374275250 +0100 | |
+++ sqlite_to_mysql.sh 2016-12-23 18:12:09.930096050 +0100 | |
@@ -49,8 +49,11 @@ | |
echo "${seafile_path}/ccnet does not exists." | |
read -p "Please provide your ccnet folder path(e.g. /data/haiwen/ccnet): " ccnet_path | |
if [ -d ${ccnet_path} ]; then | |
- USER_MGR_DB=$(dirname "${ccnet_path}")/PeerMgr/usermgr.db | |
- GRP_MGR_DB=$(dirname "${ccnet_path}")/GroupMgr/groupmgr.db | |
+# USER_MGR_DB=$(dirname "${ccnet_path}")/PeerMgr/usermgr.db | |
+# GRP_MGR_DB=$(dirname "${ccnet_path}")/GroupMgr/groupmgr.db | |
+# dirname cuts the ccnet from the path, but PeerMgr und GroupMgr are in the ccnet directory | |
+ USER_MGR_DB=${ccnet_path}/PeerMgr/usermgr.db | |
+ GRP_MGR_DB=${ccnet_path}/GroupMgr/groupmgr.db | |
else | |
echo "${ccnet_path} does not exists, quit." | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment