File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed
Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -88,26 +88,14 @@ services:
8888EOF
8989log " docker-compose.yml created successfully"
9090
91- # Install cron if not installed
92- if ! command -v cron & > /dev/null; then
93- log " Cron not found. Installing cron..."
94- apt-get update
95- apt-get install -y cron
96- systemctl enable cron
97- log " Cron installed successfully"
98- else
99- log " Cron already installed"
100- fi
101-
102- # Add cron job for system reboot
103- 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"
105- (crontab -l 2> /dev/null | grep -v " $INSTALL_DIR .*docker-compose" ; echo " $CRON_JOB " ) | crontab -
106- log " Cron job configured successfully"
91+ # Start PostgresUS
92+ log " Starting PostgresUS..."
93+ cd " $INSTALL_DIR "
94+ docker compose up -d
95+ log " PostgresUS started successfully"
10796
10897log " Postgresus installation completed successfully!"
10998log " -------------------------------------------"
110- log " To launch immediately :"
99+ log " To launch:"
111100log " > cd $INSTALL_DIR && docker compose up -d"
112- log " Or reboot system to auto-start via cron"
113101log " Access Postgresus at: http://localhost:4005"
You can’t perform that action at this time.
0 commit comments