Initial commit

This commit is contained in:
bj
2023-09-06 17:09:19 +00:00
commit e73142c21f
9 changed files with 192 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# file: download-release.sh
mkdir -p release
cd release
git clone https://github.com/ankicommunity/anki-sync-server
mv anki-sync-server/src/* .
rm -rf anki-sync-server
cd ..
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# file: entrypoint.sh
# if [ -f "/app/data/auth.db" ]; then
# echo "auth.db found"
# else
# echo "Creating new authentication database: auth.db."
# sqlite3 /app/data/auth.db 'CREATE TABLE auth (user VARCHAR PRIMARY KEY, hash VARCHAR)'
# fi
# echo "Updating database schema"
# python3 utils/migrate_user_tables.py
echo "Starting anki-sync-server"
python3 -m ankisyncd