1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-27 12:30:18 +00:00

Update Fluid Calendar for v1.2.0 (#3053)

This commit breaks up the npm commands due to some breaking changes. It
also modifies the env file to remove deprecated options and adds new
ones.
This commit is contained in:
Chris 2025-03-13 10:35:10 -04:00 committed by GitHub
parent 7aebd12d87
commit 6953a7779b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 18 deletions

View File

@ -46,8 +46,10 @@ function update_script() {
cp -rf ${APP}-${RELEASE}/* /opt/fluid-calendar cp -rf ${APP}-${RELEASE}/* /opt/fluid-calendar
cd /opt/fluid-calendar cd /opt/fluid-calendar
export NEXT_TELEMETRY_DISABLED=1 export NEXT_TELEMETRY_DISABLED=1
$STD npm run setup $STD npm install --legacy-peer-deps
$STD npm run build $STD npm run prisma:generate
$STD npm run prisma:migrate
$STD npm run build:os
msg_ok "Updated $APP to v${RELEASE}" msg_ok "Updated $APP to v${RELEASE}"
msg_info "Starting $APP" msg_info "Starting $APP"

View File

@ -59,30 +59,23 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
cat <<EOF >/opt/fluid-calendar/.env cat <<EOF >/opt/fluid-calendar/.env
DATABASE_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME}" DATABASE_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME}"
# For OAuth integration with Google Calendar
# See https://console.cloud.google.com
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
# Change the URL below to your external URL # Change the URL below to your external URL
NEXTAUTH_URL="http://localhost:3000" NEXTAUTH_URL="http://localhost:3000"
NEXT_PUBLIC_APP_URL="http://localhost:3000"
NEXTAUTH_SECRET="${NEXTAUTH_SECRET}" NEXTAUTH_SECRET="${NEXTAUTH_SECRET}"
NEXT_PUBLIC_SITE_URL="http://localhost:3000"
# For optional Outlook Calendar Integration NEXT_PUBLIC_ENABLE_SAAS_FEATURES=false
# Create at https://portal.azure.com
AZURE_AD_CLIENT_ID=""
AZURE_AD_CLIENT_SECRET=""
AZURE_AD_TENANT_ID=""
# Logging configuration RESEND_API_KEY=
# Options: debug, none (check logger.js for more details) RESEND_EMAIL=
LOG_LEVEL="none"
DEBUG_ENABLED=0
EOF EOF
export NEXT_TELEMETRY_DISABLED=1 export NEXT_TELEMETRY_DISABLED=1
cd /opt/fluid-calendar cd /opt/fluid-calendar
$STD npm run setup $STD npm install --legacy-peer-deps
$STD npm run build $STD npm run prisma:generate
$STD npm run prisma:migrate
$STD npm run build:os
msg_ok "Setup ${APPLICATION}" msg_ok "Setup ${APPLICATION}"
msg_info "Creating Service" msg_info "Creating Service"