Skip to content

Commit 376e46a

Browse files
FIX (cron): Fix settuping cron job for restart
1 parent b61364e commit 376e46a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docker-compose.yml.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ services:
3434
command: -p 5437
3535
shm_size: 10gb
3636
healthcheck:
37-
test: ["CMD-SHELL", "pg_isready -U postgresus -d postgresus -p 5437"]
37+
test: ["CMD-SHELL", "pg_isready -U postgres -d postgresus -p 5437"]
3838
interval: 5s
3939
timeout: 5s
4040
retries: 5

install-postgresus.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ services:
8080
command: -p 5437
8181
shm_size: 10gb
8282
healthcheck:
83-
test: ["CMD-SHELL", "pg_isready -U postgresus -d postgresus -p 5437"]
83+
test: ["CMD-SHELL", "pg_isready -U postgres -d postgresus -p 5437"]
8484
interval: 5s
8585
timeout: 5s
8686
retries: 5
@@ -101,13 +101,13 @@ fi
101101

102102
# Add cron job for system reboot
103103
log "Setting up cron job to start PostgresUS on system reboot..."
104-
CRON_JOB="@reboot cd $INSTALL_DIR && docker-compose up -d >> $INSTALL_DIR/postgresus-startup.log 2>&1"
104+
CRON_JOB="@reboot cd $INSTALL_DIR && docker compose up -d >> $INSTALL_DIR/postgresus-startup.log 2>&1"
105105
(crontab -l 2>/dev/null | grep -v "$INSTALL_DIR.*docker-compose"; echo "$CRON_JOB") | crontab -
106106
log "Cron job configured successfully"
107107

108-
log "PostgresUS installation completed successfully!"
108+
log "Postgresus installation completed successfully!"
109109
log "-------------------------------------------"
110110
log "To launch immediately:"
111111
log "> cd $INSTALL_DIR && docker compose up -d"
112112
log "Or reboot system to auto-start via cron"
113-
log "Access PostgresUS at: http://localhost:4005"
113+
log "Access Postgresus at: http://localhost:4005"

0 commit comments

Comments
 (0)