Compare commits

..
Author SHA1 Message Date
github-actions[bot] a475c65da9 Update CHANGELOG.md 2026-11-26 09:55:56 +00:00
2 changed files with 1 additions and 13 deletions

No files matched your search

-9
View File
@@ -30,15 +30,6 @@ function update_script() {
exit
fi
if ! grep -q '^APP_SECRET=' /opt/umami/.env 2>/dev/null; then
msg_info "Setting APP_SECRET"
# 3.5 dropped the DATABASE_URL fallback; the same value keeps logins and session IDs valid
DB_URL=$(sed -n 's/^DATABASE_URL=//p' /opt/umami/.env 2>/dev/null | head -n1)
echo "APP_SECRET=${DB_URL:-$(openssl rand -hex 32)}" >>/opt/umami/.env
systemctl restart umami
msg_ok "Set APP_SECRET"
fi
if check_for_gh_release "umami" "umami-software/umami"; then
msg_info "Stopping Service"
systemctl stop umami
+1 -4
View File
@@ -13,18 +13,15 @@ setting_up_container
network_check
update_os
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
PG_VERSION="17" setup_postgresql
PG_DB_NAME="umamidb" PG_DB_USER="umami" setup_postgresql_db
fetch_and_deploy_gh_release "umami" "umami-software/umami" "tarball"
PNPM_VERSION=$(jq -r '.engines.pnpm // "latest"' /opt/umami/package.json)
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
msg_info "Configuring Umami"
cd /opt/umami
$STD pnpm install
echo -e "DATABASE_URL=postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME" >>/opt/umami/.env
echo "APP_SECRET=$(openssl rand -hex 32)" >>/opt/umami/.env
$STD pnpm run build
msg_ok "Configured Umami"