diff --git a/ct/split-pro.sh b/ct/split-pro.sh index 27699c9c7..1d4b94ef2 100644 --- a/ct/split-pro.sh +++ b/ct/split-pro.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash -source <(curl -fsSL ttps://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/build.func) +source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/build.func) # Copyright (c) 2021-2026 community-scripts ORG # Author: johanngrobe # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/oss-apps/split-pro -APP="Split-Pro" +APP="Split Pro" var_tags="${var_tags:-finance;expense-sharing}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-4096}" @@ -24,7 +24,7 @@ function update_script() { check_container_resources if [[ ! -d /opt/split-pro ]]; then - msg_error "No ${APP} Installation Found!" + msg_error "No Split Pro Installation Found!" exit fi @@ -46,7 +46,6 @@ function update_script() { cp /tmp/split-pro_backup /opt/split-pro/.env rm -f /tmp/split-pro_backup ln -sf /opt/split-pro_data/uploads /opt/split-pro/uploads - cd /opt/split-pro $STD pnpm exec prisma migrate deploy msg_ok "Built Application" @@ -64,6 +63,6 @@ start build_container description msg_ok "Completed successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${CREATING}${GN} Split Pro setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/frontend/public/json/split-pro.json b/frontend/public/json/split-pro.json index 4337977f3..5b3561818 100644 --- a/frontend/public/json/split-pro.json +++ b/frontend/public/json/split-pro.json @@ -1,5 +1,5 @@ { - "name": "Split-Pro", + "name": "Split Pro", "slug": "split-pro", "categories": [ 12 @@ -20,8 +20,8 @@ "script": "ct/split-pro.sh", "resources": { "cpu": 2, - "ram": 2048, - "hdd": 10, + "ram": 4096, + "hdd": 6, "os": "debian", "version": "13" } @@ -33,23 +33,11 @@ }, "notes": [ { - "text": "First visit will prompt you to create an account", - "type": "info" + "text": "Before first use you must configure email credentials or authentication (OAuth/OIDC) provider in `/opt/split-pro/.env` and restart the service `systemctl restart split-pro`.", + "type": "warning" }, { - "text": "Installation builds Next.js application from source - takes 5-10 minutes", - "type": "info" - }, - { - "text": "PostgreSQL database with pg_cron extension is installed automatically", - "type": "info" - }, - { - "text": "Supports OAuth (Google), OIDC providers, and email authentication", - "type": "info" - }, - { - "text": "Receipt uploads are stored in /opt/splitpro_data/uploads", + "text": "Receipt uploads are stored in `/opt/split-pro_data/uploads`", "type": "info" } ] diff --git a/install/split-pro-install.sh b/install/split-pro-install.sh index 4a7a8a992..f5f5d3813 100644 --- a/install/split-pro-install.sh +++ b/install/split-pro-install.sh @@ -55,8 +55,11 @@ sed -i "s|^DATABASE_URL=.*|DATABASE_URL=\"postgresql://${PG_DB_USER}:${PG_DB_PAS sed -i "s|^NEXTAUTH_SECRET=.*|NEXTAUTH_SECRET=\"${NEXTAUTH_SECRET}\"|" .env sed -i "s|^NEXTAUTH_URL=.*|NEXTAUTH_URL=\"http://${LOCAL_IP}:3000\"|" .env sed -i "s|^NEXTAUTH_URL_INTERNAL=.*|NEXTAUTH_URL_INTERNAL=\"http://localhost:3000\"|" .env -cat >> /opt/split-pro/.env <<'EOF' -EOF +sed -i "/^POSTGRES_CONTAINER_NAME=/d" .env +sed -i "/^POSTGRES_USER=/d" .env +sed -i "/^POSTGRES_PASSWORD=/d" .env +sed -i "/^POSTGRES_DB=/d" .env +sed -i "/^POSTGRES_PORT=/d" .env $STD pnpm build $STD pnpm exec prisma migrate deploy msg_ok "Built Split Pro" @@ -85,4 +88,4 @@ msg_ok "Created Split Pro Service" motd_ssh customize -cleanup_lxc \ No newline at end of file +cleanup_lxc