Remove ads and cookie banners from HTML snapshots (#695)

* integrate ublock with single-file

* reuse chromium profile
This commit is contained in:
Sascha Ißbrücker
2024-04-14 13:09:46 +02:00
committed by GitHub
parent 22a1fc80ad
commit 25470edb2c
8 changed files with 89 additions and 10 deletions

View File

@@ -9,6 +9,8 @@ mkdir -p data
mkdir -p data/favicons
# Create assets folder if it does not exist
mkdir -p data/assets
# Create chromium profile folder if it does not exist
mkdir -p chromium-profile
# Generate secret key file if it does not exist
python manage.py generate_secret_key
@@ -21,8 +23,9 @@ python manage.py create_initial_superuser
# Migrate legacy background tasks to Huey
python manage.py migrate_tasks
# Ensure the DB folder is owned by the right user
# Ensure folders are owned by the right user
chown -R www-data: /etc/linkding/data
chown -R www-data: /etc/linkding/chromium-profile
# Start background task processor using supervisord, unless explicitly disabled
if [ "$LD_DISABLE_BACKGROUND_TASKS" != "True" ]; then