PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FIX (cron): Fix settuping cron job for restart
Rostislav Dugin376e46a9dde8
diff --git a/docker-compose.yml.example b/docker-compose.yml.exampleindex 8a8884eb..e1e66501 100644--- a/docker-compose.yml.example+++ b/docker-compose.yml.example@@ -34,7 +34,7 @@ services:command: -p 5437shm_size: 10gbhealthcheck:- test: ["CMD-SHELL", "pg_isready -U postgresus -d postgresus -p 5437"]+ test: ["CMD-SHELL", "pg_isready -U postgres -d postgresus -p 5437"]interval: 5stimeout: 5sretries: 5diff --git a/install-postgresus.sh b/install-postgresus.shindex 296bafd1..a57b1ee1 100644--- a/install-postgresus.sh+++ b/install-postgresus.sh@@ -80,7 +80,7 @@ services:command: -p 5437shm_size: 10gbhealthcheck:- test: ["CMD-SHELL", "pg_isready -U postgresus -d postgresus -p 5437"]+ test: ["CMD-SHELL", "pg_isready -U postgres -d postgresus -p 5437"]interval: 5stimeout: 5sretries: 5@@ -101,13 +101,13 @@ fi# Add cron job for system rebootlog "Setting up cron job to start PostgresUS on system reboot..."-CRON_JOB="@reboot cd $INSTALL_DIR && docker-compose up -d >> $INSTALL_DIR/postgresus-startup.log 2>&1"+CRON_JOB="@reboot cd $INSTALL_DIR && docker compose up -d >> $INSTALL_DIR/postgresus-startup.log 2>&1"(crontab -l 2>/dev/null | grep -v "$INSTALL_DIR.*docker-compose"; echo "$CRON_JOB") | crontab -log "Cron job configured successfully"-log "PostgresUS installation completed successfully!"+log "Postgresus installation completed successfully!"log "-------------------------------------------"log "To launch immediately:"log "> cd $INSTALL_DIR && docker compose up -d"log "Or reboot system to auto-start via cron"-log "Access PostgresUS at: http://localhost:4005"\ No newline at end of file+log "Access Postgresus at: http://localhost:4005"\ No newline at end of file