Skip to content

Instantly share code, notes, and snippets.

@BlackLotus
Created December 23, 2016 17:19
Show Gist options
  • Save BlackLotus/a031787f82407d39da67a5a96755c61f to your computer and use it in GitHub Desktop.
Save BlackLotus/a031787f82407d39da67a5a96755c61f to your computer and use it in GitHub Desktop.
--- 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