From 8915e15168b402f5f2627d5617a4100014d17ec4 Mon Sep 17 00:00:00 2001 From: Johann Grobe Date: Thu, 12 Feb 2026 21:19:39 +0100 Subject: [PATCH 1/9] Add split-pro functionality --- ct/split-pro.sh | 69 ++++++++++++++++++++++ frontend/public/json/split-pro.json | 56 ++++++++++++++++++ install/split-pro-install.sh | 88 +++++++++++++++++++++++++++++ 3 files changed, 213 insertions(+) create mode 100644 ct/split-pro.sh create mode 100644 frontend/public/json/split-pro.json create mode 100644 install/split-pro-install.sh diff --git a/ct/split-pro.sh b/ct/split-pro.sh new file mode 100644 index 000000000..4a6c3effb --- /dev/null +++ b/ct/split-pro.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/johanngrobe/ProxmoxVED/add/splitpro/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" +var_tags="${var_tags:-finance;expense-sharing}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-4096}" +var_disk="${var_disk:-6}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" + +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/split-pro ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "split-pro" "oss-apps/split-pro"; then + msg_info "Stopping Service" + systemctl stop split-pro + msg_ok "Stopped Service" + + msg_info "Backing up Data" + cp /opt/split-pro/.env /tmp/split-pro_backup + msg_ok "Backed up Data" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "split-pro" "oss-apps/split-pro" "tarball" "latest" "/opt/split-pro" + + msg_info "Building Application" + cd /opt/split-pro + $STD pnpm install --frozen-lockfile + $STD pnpm build + 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" + + msg_info "Starting Service" + systemctl start split-pro + msg_ok "Started Service" + msg_ok "Updated Successfully" + else + msg_ok "No update required" + fi + exit +} + +start +build_container +description +msg_ok "Completed successfully!\n" +echo -e "${CREATING}${GN}${APP} 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 diff --git a/frontend/public/json/split-pro.json b/frontend/public/json/split-pro.json new file mode 100644 index 000000000..4337977f3 --- /dev/null +++ b/frontend/public/json/split-pro.json @@ -0,0 +1,56 @@ +{ + "name": "Split-Pro", + "slug": "split-pro", + "categories": [ + 12 + ], + "date_created": "2026-02-12", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 3000, + "documentation": "https://github.com/oss-apps/split-pro", + "website": "https://github.com/oss-apps/split-pro", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/splitpro.webp", + "config_path": "/opt/split-pro/.env", + "description": "SplitPro is a self-hosted, open source way to share expenses with friends. It is designed as a replacement for Splitwise.", + "install_methods": [ + { + "type": "default", + "script": "ct/split-pro.sh", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 10, + "os": "debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "First visit will prompt you to create an account", + "type": "info" + }, + { + "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", + "type": "info" + } + ] +} diff --git a/install/split-pro-install.sh b/install/split-pro-install.sh new file mode 100644 index 000000000..4a7a8a992 --- /dev/null +++ b/install/split-pro-install.sh @@ -0,0 +1,88 @@ +#!/usr/bin/env bash + +# 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 + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs +PG_VERSION="17" setup_postgresql + +msg_info "Installing Dependencies" +$STD apt install -y \ + openssl \ + postgresql-17-cron +msg_ok "Installed Dependencies" + +PG_DB_NAME="splitpro" PG_DB_USER="splitpro" setup_postgresql_db + +msg_info "Setting up pg_cron" +sed -i "/^#shared_preload_libraries/s/^#//" /etc/postgresql/17/main/postgresql.conf +sed -i "/^shared_preload_libraries/s/''/pg_cron/" /etc/postgresql/17/main/postgresql.conf +systemctl restart postgresql +$STD sudo -u postgres psql -c "ALTER SYSTEM SET cron.database_name = 'splitpro'" +$STD sudo -u postgres psql -c "ALTER SYSTEM SET cron.timezone = 'UTC'" +systemctl restart postgresql +$STD sudo -u postgres psql -d splitpro -c "CREATE EXTENSION IF NOT EXISTS pg_cron" +$STD sudo -u postgres psql -d splitpro -c "GRANT USAGE ON SCHEMA cron TO splitpro" +$STD sudo -u postgres psql -d splitpro -c "GRANT ALL ON ALL TABLES IN SCHEMA cron TO splitpro" +msg_ok "Setup pg_cron complete" + +get_lxc_ip + +fetch_and_deploy_gh_release "split-pro" "oss-apps/split-pro" "tarball" "latest" "/opt/split-pro" + +msg_info "Installing Dependencies" +cd /opt/split-pro +$STD pnpm install --frozen-lockfile +msg_ok "Installed Dependencies" + +msg_info "Building Split Pro" +cd /opt/split-pro +mkdir -p /opt/split-pro_data/uploads +ln -sf /opt/split-pro_data/uploads /opt/split-pro/uploads +NEXTAUTH_SECRET=$(openssl rand -base64 32) +cp .env.example .env +sed -i "s|^DATABASE_URL=.*|DATABASE_URL=\"postgresql://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}\"|" .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_INTERNAL=.*|NEXTAUTH_URL_INTERNAL=\"http://localhost:3000\"|" .env +cat >> /opt/split-pro/.env <<'EOF' +EOF +$STD pnpm build +$STD pnpm exec prisma migrate deploy +msg_ok "Built Split Pro" + +msg_info "Creating Split Pro Service" +cat </etc/systemd/system/split-pro.service +[Unit] +Description=Split Pro +After=network.target postgresql.service +Requires=postgresql.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/split-pro +EnvironmentFile=/opt/split-pro/.env +ExecStart=/usr/bin/pnpm start +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now split-pro +msg_ok "Created Split Pro Service" + +motd_ssh +customize +cleanup_lxc \ No newline at end of file From 0dfd3de37adafd07fe0f3478044ebd3c3cad7ed4 Mon Sep 17 00:00:00 2001 From: Johann Grobe Date: Thu, 12 Feb 2026 21:22:48 +0100 Subject: [PATCH 2/9] fix url --- ct/split-pro.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/split-pro.sh b/ct/split-pro.sh index 4a6c3effb..27699c9c7 100644 --- a/ct/split-pro.sh +++ b/ct/split-pro.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/johanngrobe/ProxmoxVED/add/splitpro/misc/build.func) +source <(curl -fsSL ttps://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 From b0c0323a4d61669187ba9de8aca0757c6768d32a Mon Sep 17 00:00:00 2001 From: Johann Grobe Date: Thu, 12 Feb 2026 22:01:51 +0100 Subject: [PATCH 3/9] fix errors --- ct/split-pro.sh | 11 +++++------ frontend/public/json/split-pro.json | 24 ++++++------------------ install/split-pro-install.sh | 9 ++++++--- 3 files changed, 17 insertions(+), 27 deletions(-) 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 From c405f09e0612ca6708e72c059ee31bae113749c4 Mon Sep 17 00:00:00 2001 From: Johann Grobe <123082619+johanngrobe@users.noreply.github.com> Date: Fri, 13 Feb 2026 07:55:12 +0100 Subject: [PATCH 4/9] Update ct/split-pro.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- ct/split-pro.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ct/split-pro.sh b/ct/split-pro.sh index 1d4b94ef2..f6b4417e7 100644 --- a/ct/split-pro.sh +++ b/ct/split-pro.sh @@ -52,9 +52,7 @@ function update_script() { msg_info "Starting Service" systemctl start split-pro msg_ok "Started Service" - msg_ok "Updated Successfully" - else - msg_ok "No update required" + msg_ok "Updated successfully!" fi exit } From 83e4a16e9de3d9ab114076c8fcb81ec28a856a03 Mon Sep 17 00:00:00 2001 From: Johann Grobe <123082619+johanngrobe@users.noreply.github.com> Date: Fri, 13 Feb 2026 07:55:30 +0100 Subject: [PATCH 5/9] Update install/split-pro-install.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- install/split-pro-install.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/install/split-pro-install.sh b/install/split-pro-install.sh index f5f5d3813..b1ac9173e 100644 --- a/install/split-pro-install.sh +++ b/install/split-pro-install.sh @@ -36,8 +36,6 @@ $STD sudo -u postgres psql -d splitpro -c "GRANT USAGE ON SCHEMA cron TO splitpr $STD sudo -u postgres psql -d splitpro -c "GRANT ALL ON ALL TABLES IN SCHEMA cron TO splitpro" msg_ok "Setup pg_cron complete" -get_lxc_ip - fetch_and_deploy_gh_release "split-pro" "oss-apps/split-pro" "tarball" "latest" "/opt/split-pro" msg_info "Installing Dependencies" From 75cdf47f21596ae511454f4410bd6267e0bcd50d Mon Sep 17 00:00:00 2001 From: Johann Grobe <123082619+johanngrobe@users.noreply.github.com> Date: Fri, 13 Feb 2026 07:56:54 +0100 Subject: [PATCH 6/9] Update ct/split-pro.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- ct/split-pro.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/split-pro.sh b/ct/split-pro.sh index f6b4417e7..8fde3584b 100644 --- a/ct/split-pro.sh +++ b/ct/split-pro.sh @@ -61,6 +61,6 @@ start build_container description msg_ok "Completed successfully!\n" -echo -e "${CREATING}${GN} Split Pro setup has been successfully initialized!${CL}" +echo -e "${CREATING}${GN}${APP} 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}" From 3a7ebe67914c2aa6e8de44697d020684fd638070 Mon Sep 17 00:00:00 2001 From: Johann Grobe <123082619+johanngrobe@users.noreply.github.com> Date: Fri, 13 Feb 2026 07:57:53 +0100 Subject: [PATCH 7/9] Update install/split-pro-install.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- install/split-pro-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/split-pro-install.sh b/install/split-pro-install.sh index b1ac9173e..a217f4b65 100644 --- a/install/split-pro-install.sh +++ b/install/split-pro-install.sh @@ -62,7 +62,7 @@ $STD pnpm build $STD pnpm exec prisma migrate deploy msg_ok "Built Split Pro" -msg_info "Creating Split Pro Service" +msg_info "Creating Service" cat </etc/systemd/system/split-pro.service [Unit] Description=Split Pro From e189ee3eddc9a15282f9e2122415726f789e34fc Mon Sep 17 00:00:00 2001 From: Johann Grobe <123082619+johanngrobe@users.noreply.github.com> Date: Fri, 13 Feb 2026 07:58:04 +0100 Subject: [PATCH 8/9] Update install/split-pro-install.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- install/split-pro-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/split-pro-install.sh b/install/split-pro-install.sh index a217f4b65..7d33df8e2 100644 --- a/install/split-pro-install.sh +++ b/install/split-pro-install.sh @@ -82,7 +82,7 @@ RestartSec=5 WantedBy=multi-user.target EOF systemctl enable -q --now split-pro -msg_ok "Created Split Pro Service" +msg_ok "Created Service" motd_ssh customize From 0c30d2ef9534c97e5525f7814cf383940ea29a7b Mon Sep 17 00:00:00 2001 From: Johann Grobe Date: Fri, 13 Feb 2026 08:11:37 +0100 Subject: [PATCH 9/9] update docs and backup --- ct/split-pro.sh | 8 ++++---- frontend/public/json/split-pro.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ct/split-pro.sh b/ct/split-pro.sh index 8fde3584b..a33ed6ced 100644 --- a/ct/split-pro.sh +++ b/ct/split-pro.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2021-2026 community-scripts ORG # Author: johanngrobe # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -34,7 +34,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Backing up Data" - cp /opt/split-pro/.env /tmp/split-pro_backup + cp /opt/split-pro/.env /opt/split-pro.env msg_ok "Backed up Data" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "split-pro" "oss-apps/split-pro" "tarball" "latest" "/opt/split-pro" @@ -43,8 +43,8 @@ function update_script() { cd /opt/split-pro $STD pnpm install --frozen-lockfile $STD pnpm build - cp /tmp/split-pro_backup /opt/split-pro/.env - rm -f /tmp/split-pro_backup + cp /opt/split-pro.env /opt/split-pro/.env + rm -f /opt/split-pro.env ln -sf /opt/split-pro_data/uploads /opt/split-pro/uploads $STD pnpm exec prisma migrate deploy msg_ok "Built Application" diff --git a/frontend/public/json/split-pro.json b/frontend/public/json/split-pro.json index 5b3561818..34b85b49c 100644 --- a/frontend/public/json/split-pro.json +++ b/frontend/public/json/split-pro.json @@ -9,7 +9,7 @@ "updateable": true, "privileged": false, "interface_port": 3000, - "documentation": "https://github.com/oss-apps/split-pro", + "documentation": "https://github.com/oss-apps/split-pro/blob/main/docker/README.md", "website": "https://github.com/oss-apps/split-pro", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/splitpro.webp", "config_path": "/opt/split-pro/.env",