postgresus > databasus
This commit is contained in:
parent
94639cc61d
commit
d5620def9e
@ -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
|
||||
# Source: https://github.com/RostislavDugin/postgresus
|
||||
|
||||
APP="Postgresus"
|
||||
APP="Databasus"
|
||||
var_tags="${var_tags:-backup;postgresql;database}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-2048}"
|
||||
@ -29,37 +29,37 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "RostislavDugin" "postgresus"; then
|
||||
msg_info "Stopping Postgresus"
|
||||
$STD systemctl stop postgresus
|
||||
msg_ok "Stopped Postgresus"
|
||||
if check_for_gh_release "Databasus" "Databasus"; then
|
||||
msg_info "Stopping Databasus"
|
||||
$STD systemctl stop databasus
|
||||
msg_ok "Stopped Databasus"
|
||||
|
||||
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"
|
||||
|
||||
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"
|
||||
cd /opt/postgresus/frontend
|
||||
msg_info "Updating Databasus"
|
||||
cd /opt/databasus/frontend
|
||||
$STD npm ci
|
||||
$STD npm run build
|
||||
cd /opt/postgresus/backend
|
||||
cd /opt/databasus/backend
|
||||
$STD go mod download
|
||||
$STD go build -o ../postgresus ./cmd/main.go
|
||||
cd /opt/postgresus/
|
||||
$STD go build -o ../databasus ./cmd/main.go
|
||||
cd /opt/databasus/
|
||||
cp -r frontend/dist ui
|
||||
cp -r backend/migrations .
|
||||
msg_ok "Updated Postgresus"
|
||||
msg_ok "Updated Databasus"
|
||||
|
||||
msg_info "Restoring Configuration"
|
||||
cp /tmp/postgresus.env.bak /opt/postgresus/.env
|
||||
rm -f /tmp/postgresus.env.bak
|
||||
cp /tmp/databasus.env.bak /opt/databasus/.env
|
||||
rm -f /tmp/databasus.env.bak
|
||||
msg_ok "Restored Configuration"
|
||||
|
||||
msg_info "Starting Postgresus"
|
||||
$STD systemctl start postgresus
|
||||
msg_ok "Started Postgresus"
|
||||
msg_info "Starting Databasus"
|
||||
$STD systemctl start databasus
|
||||
msg_ok "Started Databasus"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
@ -1,23 +1,23 @@
|
||||
{
|
||||
"name": "Postgresus",
|
||||
"slug": "postgresus",
|
||||
"name": "Databasus",
|
||||
"slug": "databasus",
|
||||
"categories": [
|
||||
7
|
||||
],
|
||||
"date_created": "2025-12-11",
|
||||
"date_created": "2025-01-14",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": 80,
|
||||
"documentation": "https://github.com/RostislavDugin/postgresus",
|
||||
"website": "https://github.com/RostislavDugin/postgresus",
|
||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/postgresus.webp",
|
||||
"config_path": "/opt/postgresus/.env",
|
||||
"documentation": "https://github.com/databasus/databasus",
|
||||
"website": "https://github.com/databasus/databasus",
|
||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/databasus.webp",
|
||||
"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.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/postgresus.sh",
|
||||
"script": "ct/databasus.sh",
|
||||
"resources": {
|
||||
"cpu": 2,
|
||||
"ram": 2048,
|
||||
@ -29,7 +29,7 @@
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": "admin@localhost",
|
||||
"password": "See /root/postgresus.creds"
|
||||
"password": "See /root/databasus.creds"
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
@ -32,7 +32,7 @@ msg_ok "Installed Dependencies"
|
||||
|
||||
import_local_ip
|
||||
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
|
||||
|
||||
msg_info "Installing Manticore Search"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user