Remove karakeep binary assets

This commit is contained in:
Alexandre
2026-01-11 16:31:21 +01:00
parent 560e1a105f
commit ef6426a373
18 changed files with 482 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
set -e
bashio::log.info "Creating folders"
mkdir -p \
/data/cache \
/data/chrome \
/share/karakeep/extensions \
/config/meili
if id chrome &>/dev/null; then
chown -R chrome:chrome /data/cache /data/chrome
fi

View File

@@ -0,0 +1,21 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
set -e
EXTENSIONS_DIR="${CHROME_EXTENSIONS_DIR:-/share/karakeep/extensions}"
extensions=()
for extension in "${EXTENSIONS_DIR}/i-dont-care-about-cookies" "${EXTENSIONS_DIR}/ublock-origin"; do
if [ -d "$extension" ]; then
extensions+=("$extension")
fi
done
extension_flag=""
if [ ${#extensions[@]} -gt 0 ]; then
extension_flag="--load-extension=$(IFS=,; echo "${extensions[*]}")"
fi
cd /usr/src/chrome
exec su chrome -c "chromium-browser --headless=new --no-sandbox --disable-gpu --disable-dev-shm-usage --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 --hide-scrollbars --disable-crash-reporter --no-crash-upload --user-data-dir=/data/chrome ${extension_flag}"

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1,7 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
set -e
mkdir -p "${MEILI_DIR}"
exec /bin/meilisearch --db-path "${MEILI_DIR}" --no-analytics --experimental-dumpless-upgrade

View File

@@ -0,0 +1 @@
longrun