anki-sync-server/anki-sync/bin/entrypoint.sh

14 lines
278 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2023-09-06 17:09:19 +00:00
IFS=',' read -ra USER_ARRAY <<< "$SYNC_USERS"
2023-09-06 17:09:19 +00:00
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
2023-09-06 17:09:19 +00:00