fix errors

This commit is contained in:
Johann Grobe 2026-02-12 22:01:51 +01:00
parent 0dfd3de37a
commit b0c0323a4d
3 changed files with 17 additions and 27 deletions

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash #!/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 # Copyright (c) 2021-2026 community-scripts ORG
# Author: johanngrobe # Author: johanngrobe
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/oss-apps/split-pro # Source: https://github.com/oss-apps/split-pro
APP="Split-Pro" APP="Split Pro"
var_tags="${var_tags:-finance;expense-sharing}" var_tags="${var_tags:-finance;expense-sharing}"
var_cpu="${var_cpu:-2}" var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-4096}" var_ram="${var_ram:-4096}"
@ -24,7 +24,7 @@ function update_script() {
check_container_resources check_container_resources
if [[ ! -d /opt/split-pro ]]; then if [[ ! -d /opt/split-pro ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No Split Pro Installation Found!"
exit exit
fi fi
@ -46,7 +46,6 @@ function update_script() {
cp /tmp/split-pro_backup /opt/split-pro/.env cp /tmp/split-pro_backup /opt/split-pro/.env
rm -f /tmp/split-pro_backup rm -f /tmp/split-pro_backup
ln -sf /opt/split-pro_data/uploads /opt/split-pro/uploads ln -sf /opt/split-pro_data/uploads /opt/split-pro/uploads
cd /opt/split-pro
$STD pnpm exec prisma migrate deploy $STD pnpm exec prisma migrate deploy
msg_ok "Built Application" msg_ok "Built Application"
@ -64,6 +63,6 @@ start
build_container build_container
description description
msg_ok "Completed successfully!\n" 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 "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

View File

@ -1,5 +1,5 @@
{ {
"name": "Split-Pro", "name": "Split Pro",
"slug": "split-pro", "slug": "split-pro",
"categories": [ "categories": [
12 12
@ -20,8 +20,8 @@
"script": "ct/split-pro.sh", "script": "ct/split-pro.sh",
"resources": { "resources": {
"cpu": 2, "cpu": 2,
"ram": 2048, "ram": 4096,
"hdd": 10, "hdd": 6,
"os": "debian", "os": "debian",
"version": "13" "version": "13"
} }
@ -33,23 +33,11 @@
}, },
"notes": [ "notes": [
{ {
"text": "First visit will prompt you to create an account", "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": "info" "type": "warning"
}, },
{ {
"text": "Installation builds Next.js application from source - takes 5-10 minutes", "text": "Receipt uploads are stored in `/opt/split-pro_data/uploads`",
"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",
"type": "info" "type": "info"
} }
] ]

View File

@ -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_SECRET=.*|NEXTAUTH_SECRET=\"${NEXTAUTH_SECRET}\"|" .env
sed -i "s|^NEXTAUTH_URL=.*|NEXTAUTH_URL=\"http://${LOCAL_IP}:3000\"|" .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 sed -i "s|^NEXTAUTH_URL_INTERNAL=.*|NEXTAUTH_URL_INTERNAL=\"http://localhost:3000\"|" .env
cat >> /opt/split-pro/.env <<'EOF' sed -i "/^POSTGRES_CONTAINER_NAME=/d" .env
EOF 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 build
$STD pnpm exec prisma migrate deploy $STD pnpm exec prisma migrate deploy
msg_ok "Built Split Pro" msg_ok "Built Split Pro"