Skip to content

Instantly share code, notes, and snippets.

@shamoon
shamoon / teedy-to-paperless.py
Created December 27, 2020 05:18
Teedy to Paperless Migration Script
import math
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
USERNAME = "username"
PASSWORD = "password"
BASE_URL_TEEDY = "http://localhost:8080/api"
BASE_URL_PAPERLESS = "http://localhost:8000/api"
paperless_login_url = BASE_URL_PAPERLESS + "/token"
2024-03-30 07:41:01 [i] Starting docker specific checks & setup for docker pihole/pihole
2024-03-30 07:41:01 [i] Changing ID for user: pihole (100 => 1000)
2024-03-30 07:41:01 [i] Changing ID for group: pihole (101 => 1000)
2024-03-30 07:41:01
2024-03-30 07:41:01 [i] Ensuring basic configuration by re-running select functions from basic-install.sh
2024-03-30 07:41:01 [i] Assigning password defined by Environment Variable
2024-03-30 07:41:02 [i] /etc/pihole/gravity.db does not exist (Likely due to a fresh volume). This is a required file for Pi-hole to operate.
2024-03-30 07:41:02 [i] Creating new gravity database
2024-03-30 07:41:02 [i] Upgrading gravity database from version 18 to 19
2024-03-30 07:41:02 [i] Migrating content of /etc/pihole/adlists.list into new database