Changed to docker image that builds from source
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
#!/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 ..
|
||||
+10
-12
@@ -1,15 +1,13 @@
|
||||
#!/bin/sh
|
||||
# file: entrypoint.sh
|
||||
#!/bin/bash
|
||||
|
||||
# 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
|
||||
IFS=',' read -ra USER_ARRAY <<< "$SYNC_USERS"
|
||||
|
||||
# echo "Updating database schema"
|
||||
# python3 utils/migrate_user_tables.py
|
||||
for index in "${!USER_ARRAY[@]}"; do
|
||||
USER_PASS="${USER_ARRAY[index]}"
|
||||
export "SYNC_USER$((index+1))=$USER_PASS"
|
||||
done
|
||||
|
||||
# Now start the anki-sync-server
|
||||
echo "Starting anki sync server..."
|
||||
exec anki-sync-server
|
||||
|
||||
echo "Starting anki-sync-server"
|
||||
python3 -m ankisyncd
|
||||
Reference in New Issue
Block a user