postgresus > databasus

This commit is contained in:
CanbiZ 2026-01-14 15:27:54 +01:00
parent 94639cc61d
commit d5620def9e
4 changed files with 28 additions and 28 deletions

View File

@ -5,7 +5,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://github.com/RostislavDugin/postgresus # Source: https://github.com/RostislavDugin/postgresus
APP="Postgresus" APP="Databasus"
var_tags="${var_tags:-backup;postgresql;database}" var_tags="${var_tags:-backup;postgresql;database}"
var_cpu="${var_cpu:-2}" var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}" var_ram="${var_ram:-2048}"
@ -29,37 +29,37 @@ function update_script() {
exit exit
fi fi
if check_for_gh_release "RostislavDugin" "postgresus"; then if check_for_gh_release "Databasus" "Databasus"; then
msg_info "Stopping Postgresus" msg_info "Stopping Databasus"
$STD systemctl stop postgresus $STD systemctl stop databasus
msg_ok "Stopped Postgresus" msg_ok "Stopped Databasus"
msg_info "Backing up Configuration" msg_info "Backing up Configuration"
cp /opt/postgresus/.env /tmp/postgresus.env.bak cp /opt/databasus/.env /tmp/databasus.env.bak
msg_ok "Backed up Configuration" msg_ok "Backed up Configuration"
fetch_and_deploy_gh_release "postgresus" "RostislavDugin/postgresus" "tarball" "v${RELEASE}" "/opt/postgresus" fetch_and_deploy_gh_release "databasus" "databasus/databasus" "tarball" "latest" "/opt/databasus"
msg_info "Updating Postgresus" msg_info "Updating Databasus"
cd /opt/postgresus/frontend cd /opt/databasus/frontend
$STD npm ci $STD npm ci
$STD npm run build $STD npm run build
cd /opt/postgresus/backend cd /opt/databasus/backend
$STD go mod download $STD go mod download
$STD go build -o ../postgresus ./cmd/main.go $STD go build -o ../databasus ./cmd/main.go
cd /opt/postgresus/ cd /opt/databasus/
cp -r frontend/dist ui cp -r frontend/dist ui
cp -r backend/migrations . cp -r backend/migrations .
msg_ok "Updated Postgresus" msg_ok "Updated Databasus"
msg_info "Restoring Configuration" msg_info "Restoring Configuration"
cp /tmp/postgresus.env.bak /opt/postgresus/.env cp /tmp/databasus.env.bak /opt/databasus/.env
rm -f /tmp/postgresus.env.bak rm -f /tmp/databasus.env.bak
msg_ok "Restored Configuration" msg_ok "Restored Configuration"
msg_info "Starting Postgresus" msg_info "Starting Databasus"
$STD systemctl start postgresus $STD systemctl start databasus
msg_ok "Started Postgresus" msg_ok "Started Databasus"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
fi fi
exit exit

View File

@ -1,23 +1,23 @@
{ {
"name": "Postgresus", "name": "Databasus",
"slug": "postgresus", "slug": "databasus",
"categories": [ "categories": [
7 7
], ],
"date_created": "2025-12-11", "date_created": "2025-01-14",
"type": "ct", "type": "ct",
"updateable": true, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 80, "interface_port": 80,
"documentation": "https://github.com/RostislavDugin/postgresus", "documentation": "https://github.com/databasus/databasus",
"website": "https://github.com/RostislavDugin/postgresus", "website": "https://github.com/databasus/databasus",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/postgresus.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/databasus.webp",
"config_path": "/opt/postgresus/.env", "config_path": "/opt/databasus/.env",
"description": "Free, open source and self-hosted solution for automated PostgreSQL backups. With multiple storage options, notifications, scheduling, and a beautiful web interface for managing database backups across multiple PostgreSQL instances.", "description": "Free, open source and self-hosted solution for automated PostgreSQL backups. With multiple storage options, notifications, scheduling, and a beautiful web interface for managing database backups across multiple PostgreSQL instances.",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",
"script": "ct/postgresus.sh", "script": "ct/databasus.sh",
"resources": { "resources": {
"cpu": 2, "cpu": 2,
"ram": 2048, "ram": 2048,
@ -29,7 +29,7 @@
], ],
"default_credentials": { "default_credentials": {
"username": "admin@localhost", "username": "admin@localhost",
"password": "See /root/postgresus.creds" "password": "See /root/databasus.creds"
}, },
"notes": [ "notes": [
{ {

View File

@ -32,7 +32,7 @@ msg_ok "Installed Dependencies"
import_local_ip import_local_ip
setup_mariadb setup_mariadb
MARIADB_DB_NAME="piler" MARIADB_DB_USER="piler" setup_mysql_db MARIADB_DB_NAME="piler" MARIADB_DB_USER="piler" setup_mariadb_db
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap,gd,memcached,pdo,mysql,curl,zip" setup_php PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap,gd,memcached,pdo,mysql,curl,zip" setup_php
msg_info "Installing Manticore Search" msg_info "Installing Manticore Search"