scripts: update default database path for fetch-apikey.sh

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-01-27 06:10:16 -05:00
parent 12b1befcbc
commit 2392ccd719
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Helper Script for fetching the API Key from a moonraker database # Helper Script for fetching the API Key from a moonraker database
DATABASE_PATH="${HOME}/.moonraker_database" DATABASE_PATH="${HOME}/printer_data/database"
MOONRAKER_ENV="${HOME}/moonraker-env" MOONRAKER_ENV="${HOME}/moonraker-env"
DB_ARGS="--read=READ --db=authorized_users get _API_KEY_USER_" DB_ARGS="--read=READ --db=authorized_users get _API_KEY_USER_"
API_REGEX='(?<="api_key": ")([^"]+)' API_REGEX='(?<="api_key": ")([^"]+)'