Compare commits

...
Author SHA1 Message Date
MickLesk a2d5170621 Authentik: go through 2026.8.7 to 2026.11.0 in one run
authentik only updates from the previous major release. An install below
2026.8 is now taken to 2026.8.7 and then to 2026.11.0 by the same update,
with the database migrated after each stage. A stage that did not finish
is done again on the next run instead of being skipped.
2026-12-04 10:14:54 +01:00
MickLesk 751c60d82b Update authentik to 2026.11.0
The build is unchanged. 2026.11 only updates from 2026.8, so older installs are taken to 2026.8.7 first. It also refuses to start without a base URL, so the update stops beforehand when none is set and the embedded outpost has no host either.
2026-12-04 09:04:48 +01:00
thieneretandCanbiZ b42e66a49d Update authentik 2026.8.7 (#19051)
* authentik: wait for web UI readiness after install/update restart

The new PR test battery probes the authentik web UI right after the
script ends; on slower runners gunicorn workers are still booting and
answer 503 within the probe window. Poll https://127.0.0.1:9443/ for
up to 180s (200/302 accepted) after starting services in both the
install and update paths; warn instead of fail on timeout.

* authentik: move GeoIP auto-update from cron to systemd timer

The crontab call breaks incus builds (no cron package in the runner
image, exit 127) and overwrites the whole root crontab. Replace it in
the install script with an oneshot service + calendar timer pair
(same Thu/Sat 19:39 schedule, still disabled by default like the
previous commented-out crontab entry). In update_script, migrate
existing installs: create the units when missing and strip only
geoipupdate lines from the user's crontab, keeping other entries.

* authentik: conform to AGENTS.md script rules

No /dev/null redirections: readiness probes now capture the HTTP
status line via curl -I and sed; the crontab migration guards on the
/usr/bin/crontab file test and folds stderr into the captured
variable. No systemctl daemon-reload for the new units (systemctl
enable reloads them when the user opts in). Comments trimmed to the
single allowed line.

* authentik: take over active cron job, fix errexit-unsafe grep

If the crontab geoipupdate line was not commented out, the user
opted into auto-updates, so the migration now enables the timer.
grep -v returning no lines would abort the update under the
engine's errexit; guarded with || true. Validated end-to-end in a
simulated set -Eeuo pipefail environment with stub crontab/systemctl.

* authentik: state and extend readiness wait to 300s

Both readiness blocks now print their budget upfront and wait up to
300s (60 x 5s) before warning; slow runners needed longer than 180s
in CI.

* authentik: probe readiness via the engine ct_exec helper

Follow the #18949 host-side helper style (ct_exec wraps pct exec).

* authentik: update to 2026.8.7

2026.8.7 is the current stable patch of the 2026.8 line (2026.11.25).
Build inputs are unchanged versus 2026.8.6: container Dockerfile is
byte-identical (sha256), pyproject/package.json bump the version field
only, go.mod is unchanged, and the fips Makefile still pins xmlsec
1.3.13 (the pin line moved from L26 to L28, comment updated to match).

* Remove GeoIP auto-update cron migration logic

Removed GeoIP auto-update migration from cron to systemd timer.

* Remove GeoIP update service and timer setup

Removed GeoIP update service and timer configuration from the installation script.

---------

Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-12-04 08:10:22 +01:00
CanbiZ (MickLesk) f6d75d7a33 Revert "Refactor AdGuard Home update process (#19291)" (#19293)
This reverts commit 681e168ff7.
2026-12-04 06:33:09 +01:00
3 changed files with 203 additions and 132 deletions

No files matched your search

+22 -3
View File
@@ -32,9 +32,28 @@ variables
color
catch_errors
msg_info "Updating AdGuard Home"
$STD /opt/AdGuardHome/AdGuardHome --update
msg_ok "Updated AdGuard Home"
update_deb_based() {
if [[ ! -d /opt/AdGuardHome ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_error "Adguard Home can only be updated via the user interface."
}
update_alpine() {
msg_info "Updating Alpine Packages"
$STD apk -U upgrade
msg_ok "Updated Alpine Packages"
msg_info "Updating AdGuard Home"
$STD /opt/AdGuardHome/AdGuardHome --update
msg_ok "Updated AdGuard Home"
msg_info "Restarting AdGuard Home"
$STD rc-service adguardhome restart
msg_ok "Restarted AdGuard Home"
msg_ok "Updated successfully!"
}
function update_script() {
header_info
+180 -127
View File
@@ -31,13 +31,27 @@ function update_script() {
exit
fi
read -r MAJOR MINOR PATCH <<<"$(sed 's/^version\///; s/\./ /g' "$HOME/.authentik")"
# An update that did not finish leaves the version it started from in the .pending marker
VERSION_FILE="$HOME/.authentik"
if [[ -s $VERSION_FILE.pending ]]; then
VERSION_FILE="$VERSION_FILE.pending"
fi
read -r MAJOR MINOR PATCH <<<"$(sed 's/^version\///; s/\./ /g' "$VERSION_FILE")"
if [[ $MAJOR == 2026 && $MINOR -lt 5 ]]; then
msg_error "Updating from version ${MAJOR}.${MINOR}.${PATCH} is not supported. A minimum version of 2026.5.x is required to update. See: https://docs.goauthentik.io/releases/2026.8/"
exit
fi
if [[ $MAJOR == 2026 && $MINOR -lt 11 ]]; then
BASE_URL="$(yq '.web.base_url // ""' /etc/authentik/config.yml 2>/dev/null)$(grep -s '^AUTHENTIK_WEB__BASE_URL=.' /etc/default/authentik-server || true)"
BASE_URL+="$(runuser -u postgres -- psql -d authentik -tA -c "SELECT _config->>'authentik_host' FROM authentik_outposts_outpost WHERE managed = 'goauthentik.io/outposts/embedded'" -c "SELECT base_url FROM authentik_tenants_tenant" -c "SELECT base_url FROM authentik_admin_systemsettings" 2>/dev/null | tr -d '[:space:]' || true)"
if [[ -z $BASE_URL ]]; then
msg_error "authentik 2026.11 does not start without a base URL. Add AUTHENTIK_WEB__BASE_URL=https://<your authentik address> to /etc/default/authentik-server and /etc/default/authentik-worker, then run the update again."
exit
fi
fi
msg_info "Update dependencies"
ensure_dependencies crossbuild-essential-$(arch_resolve) gcc-$(arch_resolve "x86-64" "aarch64")-linux-gnu cmake clang libunwind-18-dev
msg_ok "Update dependencies"
@@ -47,8 +61,12 @@ function update_script() {
RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust
setup_yq
AUTHENTIK_VERSION="version/2026.8.6"
# Source: https://github.com/goauthentik/fips/blob/main/Makefile#L26
AUTHENTIK_VERSIONS=("version/2026.11.0")
# authentik only updates from the previous major release
if [[ $MAJOR == 2026 && $MINOR -lt 8 ]]; then
AUTHENTIK_VERSIONS=("version/2026.8.7" "version/2026.11.0")
fi
# Source: https://github.com/goauthentik/fips/blob/main/Makefile#L28
XMLSEC_VERSION="1.3.13"
if check_for_gh_release "geoipupdate" "maxmind/geoipupdate"; then
@@ -68,143 +86,165 @@ function update_script() {
msg_ok "Updated xmlsec"
fi
if check_for_gh_release "authentik" "goauthentik/authentik" "${AUTHENTIK_VERSION}"; then
msg_info "Stopping Services"
systemctl stop authentik-server authentik-worker
if [[ $(systemctl is-active authentik-ldap) == active ]]; then
systemctl stop authentik-ldap
fi
if [[ $(systemctl is-active authentik-rac) == active ]]; then
systemctl stop authentik-rac
fi
if [[ $(systemctl is-active authentik-radius) == active ]]; then
systemctl stop authentik-radius
fi
msg_ok "Stopped Services"
for AUTHENTIK_VERSION in "${AUTHENTIK_VERSIONS[@]}"; do
if check_for_gh_release "authentik" "goauthentik/authentik" "${AUTHENTIK_VERSION}"; then
msg_info "Stopping Services"
systemctl stop authentik-server authentik-worker
if [[ $(systemctl is-active authentik-ldap) == active ]]; then
systemctl stop authentik-ldap
fi
if [[ $(systemctl is-active authentik-rac) == active ]]; then
systemctl stop authentik-rac
fi
if [[ $(systemctl is-active authentik-radius) == active ]]; then
systemctl stop authentik-radius
fi
msg_ok "Stopped Services"
if [[ ! -d /opt/authentik-data/blueprints ]]; then
msg_info "Moving blueprints to presistent directory"
cp -r /opt/authentik/blueprints /opt/authentik-data/
rm -r /opt/authentik/blueprints
$STD find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +
yq -i ".blueprints_dir = \"/opt/authentik-data/blueprints\"" /etc/authentik/config.yml
msg_ok "blueprints moved to presistent directory"
msg_warn "The blueprints provided by authentik are always overwritten when updated! Only manually created custom blueprints remain unchanged between updates."
fi
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
UV_PYTHON_INSTALL_DIR="/usr/local/bin" PYTHON_VERSION="3.14.10" UV_PROJECT_DIR="/opt/authentik" setup_uv
GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go
msg_info "Configuring rust"
cd /opt/authentik
$STD rustup install
$STD rustup default "$(sed -n 's/channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
msg_ok "Configured rust"
msg_info "Updating web"
export NODE_ENV="production"
cd /opt/authentik
$STD node ./scripts/node/lint-runtime.ts ./web
cd /opt/authentik/web
$STD pnpm install --frozen-lockfile
$STD pnpm run build
$STD pnpm run build:sfe
msg_ok "Updated web"
msg_info "Updating outposts"
cd /opt/authentik
mkdir -p /opt/authentik/bin
export CGO_ENABLED="1"
export CC="$(arch_resolve "x86_64" "aarch64")-linux-gnu-gcc"
$STD go mod download
$STD go build -o /opt/authentik/bin/ldap ./cmd/ldap
$STD go build -o /opt/authentik/bin/rac ./cmd/rac
$STD go build -o /opt/authentik/bin/radius ./cmd/radius
msg_ok "Updated outposts"
msg_info "Building binary. It may take more than 10 minutes, please be patient."
export AWS_LC_FIPS_SYS_CC="clang"
cd /opt/authentik
$STD cargo build --package authentik --no-default-features --features core --locked --release
cp ./target/release/authentik /opt/authentik/bin/
rm -r ./target
msg_ok "Built worker"
msg_info "Updating python server"
export UV_NO_BINARY_PACKAGE="cryptography lxml python-kadmin-rs xmlsec"
export UV_COMPILE_BYTECODE="1"
export UV_LINK_MODE="copy"
export UV_NATIVE_TLS="1"
export RUSTUP_PERMIT_COPY_RENAME="true"
export UV_PYTHON_INSTALL_DIR="/usr/local/bin"
cd /opt/authentik
for attempt in 1 2 3; do
if [[ $attempt -eq 3 ]]; then
$STD uv sync --locked --no-install-project --no-dev
break
fi
$STD uv sync --locked --no-install-project --no-dev && break
msg_warn "uv sync attempt $attempt failed, retrying..."
sleep $((attempt * 15))
done
chown -R authentik:authentik /opt/authentik
msg_ok "Updated python server"
if [[ ! -d /opt/authentik-data/blueprints ]]; then
msg_info "Moving blueprints to presistent directory"
cp -r /opt/authentik/blueprints /opt/authentik-data/
rm -r /opt/authentik/blueprints
$STD find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +
yq -i ".blueprints_dir = \"/opt/authentik-data/blueprints\"" /etc/authentik/config.yml
msg_ok "blueprints moved to presistent directory"
msg_warn "The blueprints provided by authentik are always overwritten when updated! Only manually created custom blueprints remain unchanged between updates."
fi
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
UV_PYTHON_INSTALL_DIR="/usr/local/bin" PYTHON_VERSION="3.14.10" UV_PROJECT_DIR="/opt/authentik" setup_uv
GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go
# Also catch installs whose version marker already reads 2026.8.x but whose units were never migrated
if [[ $MAJOR == 2026 && $MINOR -lt 8 ]] || grep -q "ExecStart=/opt/authentik/authentik-server" /etc/systemd/system/authentik-server.service; then
msg_info "Updating Worker and Server config (from $MAJOR.$MINOR)"
cat <<EOF >>/etc/default/authentik-server
RUST_BACKTRACE=full
EOF
cat <<EOF >>/etc/default/authentik-worker
RUST_BACKTRACE=full
EOF
msg_ok "Updated Worker and Server config (from $MAJOR.$MINOR)"
msg_info "Configuring rust"
cd /opt/authentik
$STD rustup install
$STD rustup default "$(sed -n 's/channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
msg_ok "Configured rust"
msg_info "Updating web"
export NODE_ENV="production"
cd /opt/authentik
$STD node ./scripts/node/lint-runtime.ts ./web
cd /opt/authentik/web
$STD pnpm install --frozen-lockfile
$STD pnpm run build
$STD pnpm run build:sfe
msg_ok "Updated web"
msg_info "Updating outposts"
cd /opt/authentik
mkdir -p /opt/authentik/bin
export CGO_ENABLED="1"
export CC="$(arch_resolve "x86_64" "aarch64")-linux-gnu-gcc"
$STD go mod download
$STD go build -o /opt/authentik/bin/ldap ./cmd/ldap
$STD go build -o /opt/authentik/bin/rac ./cmd/rac
$STD go build -o /opt/authentik/bin/radius ./cmd/radius
msg_ok "Updated outposts"
msg_info "Building binary. It may take more than 10 minutes, please be patient."
export AWS_LC_FIPS_SYS_CC="clang"
cd /opt/authentik
$STD cargo build --package authentik --no-default-features --features core --locked --release
cp ./target/release/authentik /opt/authentik/bin/
rm -r ./target
msg_ok "Built worker"
msg_info "Updating python server"
export UV_NO_BINARY_PACKAGE="cryptography lxml python-kadmin-rs xmlsec"
export UV_COMPILE_BYTECODE="1"
export UV_LINK_MODE="copy"
export UV_NATIVE_TLS="1"
export RUSTUP_PERMIT_COPY_RENAME="true"
export UV_PYTHON_INSTALL_DIR="/usr/local/bin"
cd /opt/authentik
for attempt in 1 2 3; do
if [[ $attempt -eq 3 ]]; then
$STD uv sync --locked --no-install-project --no-dev
break
msg_info "Updating services (from $MAJOR.$MINOR)"
sed -i "s|ExecStart=/opt/authentik/authentik-server|ExecStart=/opt/authentik/bin/authentik server|g" /etc/systemd/system/authentik-server.service
sed -i "s|ExecStart=/opt/authentik/authentik-worker worker|ExecStart=/opt/authentik/bin/authentik worker|g" /etc/systemd/system/authentik-worker.service
sed -i "s|ExecStart=/opt/authentik/ldap|ExecStart=/opt/authentik/bin/ldap|g" /etc/systemd/system/authentik-ldap.service
sed -i "s|ExecStart=/opt/authentik/radius|ExecStart=/opt/authentik/bin/radius|g" /etc/systemd/system/authentik-radius.service
sed -i "s|ExecStart=/opt/authentik/rac|ExecStart=/opt/authentik/bin/rac|g" /etc/systemd/system/authentik-rac.service
systemctl daemon-reload
msg_ok "Updated services (from $MAJOR.$MINOR)"
fi
$STD uv sync --locked --no-install-project --no-dev && break
msg_warn "uv sync attempt $attempt failed, retrying..."
sleep $((attempt * 15))
done
chown -R authentik:authentik /opt/authentik
msg_ok "Updated python server"
cp -r /opt/authentik/blueprints /opt/authentik-data/
rm -r /opt/authentik/blueprints
$STD find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +
msg_info "Updating Worker and Server config"
sed -i "s|/dev/shm\/\?$|/dev/shm/authentik-server|g" /etc/default/authentik-server
sed -i "s|/dev/shm\/\?$|/dev/shm/authentik-worker|g" /etc/default/authentik-worker
msg_ok "Updated Worker and Server config"
# Also catch installs whose version marker already reads 2026.8.x but whose units were never migrated
if [[ $MAJOR == 2026 && $MINOR -lt 8 ]] || grep -q "ExecStart=/opt/authentik/authentik-server" /etc/systemd/system/authentik-server.service; then
msg_info "Updating Worker and Server config (from $MAJOR.$MINOR)"
cat <<EOF >>/etc/default/authentik-server
RUST_BACKTRACE=full
EOF
cat <<EOF >>/etc/default/authentik-worker
RUST_BACKTRACE=full
EOF
msg_ok "Updated Worker and Server config (from $MAJOR.$MINOR)"
msg_info "Updating services (from $MAJOR.$MINOR)"
sed -i "s|ExecStart=/opt/authentik/authentik-server|ExecStart=/opt/authentik/bin/authentik server|g" /etc/systemd/system/authentik-server.service
sed -i "s|ExecStart=/opt/authentik/authentik-worker worker|ExecStart=/opt/authentik/bin/authentik worker|g" /etc/systemd/system/authentik-worker.service
sed -i "s|ExecStart=/opt/authentik/ldap|ExecStart=/opt/authentik/bin/ldap|g" /etc/systemd/system/authentik-ldap.service
sed -i "s|ExecStart=/opt/authentik/radius|ExecStart=/opt/authentik/bin/radius|g" /etc/systemd/system/authentik-radius.service
sed -i "s|ExecStart=/opt/authentik/rac|ExecStart=/opt/authentik/bin/rac|g" /etc/systemd/system/authentik-rac.service
msg_info "Updating services"
sed -i 's/authentik Go Server (API Gateway)/authentik Server/g' /etc/systemd/system/authentik-server.service
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service; then
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service
fi
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service; then
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service
fi
systemctl daemon-reload
msg_ok "Updated services (from $MAJOR.$MINOR)"
fi
msg_ok "Updated services"
msg_info "Updating Worker and Server config"
sed -i "s|/dev/shm\/\?$|/dev/shm/authentik-server|g" /etc/default/authentik-server
sed -i "s|/dev/shm\/\?$|/dev/shm/authentik-worker|g" /etc/default/authentik-worker
msg_ok "Updated Worker and Server config"
msg_info "Migrating database"
$STD runuser -u authentik -- bash -c 'set -a; . /etc/default/authentik-server; set +a; mkdir -p "$TMPDIR" "$PROMETHEUS_MULTIPROC_DIR"; cd /opt/authentik && python -m lifecycle.migrate'
msg_ok "Migrated database"
# This stage is done: the next one, or the next run, starts from here
rm -f "$HOME/.authentik.pending"
read -r MAJOR MINOR PATCH <<<"$(sed 's/^version\///; s/\./ /g' <<<"$AUTHENTIK_VERSION")"
msg_info "Updating services"
sed -i 's/authentik Go Server (API Gateway)/authentik Server/g' /etc/systemd/system/authentik-server.service
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service; then
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service
fi
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service; then
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service
fi
systemctl daemon-reload
msg_ok "Updated services"
msg_info "Starting Services"
systemctl start authentik-server authentik-worker
if [[ $(systemctl is-enabled authentik-ldap) == enabled ]]; then
systemctl start authentik-ldap
fi
if [[ $(systemctl is-enabled authentik-rac) == enabled ]]; then
systemctl start authentik-rac
fi
if [[ $(systemctl is-enabled authentik-radius) == enabled ]]; then
systemctl start authentik-radius
fi
msg_ok "Started Services"
msg_info "Starting Services"
systemctl start authentik-server authentik-worker
if [[ $(systemctl is-enabled authentik-ldap) == enabled ]]; then
systemctl start authentik-ldap
fi
if [[ $(systemctl is-enabled authentik-rac) == enabled ]]; then
systemctl start authentik-rac
fi
if [[ $(systemctl is-enabled authentik-radius) == enabled ]]; then
systemctl start authentik-radius
fi
msg_ok "Started Services"
fi
msg_info "Waiting for authentik to become ready (up to 300s)"
CODE=000
for _ in {1..60}; do
CODE=$(curl -ksI -m 3 https://127.0.0.1:9443/ | sed -n 's,^HTTP/[0-9.]* \([0-9]\{3\}\).*,\1,p' || true)
[[ "$CODE" == "200" || "$CODE" == "302" ]] && break
sleep 5
done
if [[ "$CODE" == "200" || "$CODE" == "302" ]]; then
msg_ok "authentik is responding (HTTP ${CODE})"
else
msg_warn "authentik did not start responding (HTTP ${CODE}) within 300s. It may still be booting (migrations after an upgrade can take longer); check: journalctl -eu authentik-server"
fi
fi
done
msg_ok "Updated successfully!"
exit
}
@@ -226,6 +266,19 @@ msg_info "Starting Services"
ct_exec systemctl enable -q --now authentik-server authentik-worker
msg_ok "Started Services"
msg_info "Waiting for authentik to become ready (up to 300s)"
CODE=000
for _ in {1..60}; do
CODE=$(ct_exec curl -ksI -m 3 https://127.0.0.1:9443/ | sed -n 's,^HTTP/[0-9.]* \([0-9]\{3\}\).*,\1,p' || true)
[[ "$CODE" == "200" || "$CODE" == "302" ]] && break
sleep 5
done
if [[ "$CODE" == "200" || "$CODE" == "302" ]]; then
msg_ok "authentik is responding (HTTP ${CODE})"
else
msg_warn "authentik did not start responding (HTTP ${CODE}) within 300s. It may still be booting (first boot runs migrations); check inside the container with journalctl -eu authentik-server"
fi
description
msg_ok "Completed successfully!\n"
+1 -2
View File
@@ -57,7 +57,7 @@ PG_VERSION="17" setup_postgresql
PG_DB_NAME="authentik" PG_DB_USER="authentik" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
XMLSEC_VERSION="1.3.13"
AUTHENTIK_VERSION="version/2026.8.6"
AUTHENTIK_VERSION="version/2026.11.0"
fetch_and_deploy_gh_release "xmlsec" "lsh123/xmlsec" "tarball" "${XMLSEC_VERSION}" "/opt/xmlsec"
fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go
@@ -108,7 +108,6 @@ DatabaseDirectory /opt/authentik-data/geoip
RetryFor 5m
Parallelism 1
EOF
echo "#39 19 * * 6,4 /usr/bin/geoipupdate -f /usr/local/etc/GeoIP.conf" | crontab -
msg_info "Building binary. It may take more than 10 minutes, please be patient."