File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1- postgres-version = " 15.1.0.92 "
1+ postgres-version = " 15.1.0.94 "
Original file line number Diff line number Diff line change @@ -37,6 +37,13 @@ function configure_services {
3737 done
3838}
3939
40+ function enable_swap {
41+ fallocate -l 1G /mnt/swapfile
42+ chmod 600 /mnt/swapfile
43+ mkswap /mnt/swapfile
44+ swapon /mnt/swapfile
45+ }
46+
4047PG_CONF=/etc/postgresql/postgresql.conf
4148SUPERVISOR_CONF=/etc/supervisor/supervisord.conf
4249
@@ -224,5 +231,9 @@ if [ "${AUTOSHUTDOWN_ENABLED:-}" ]; then
224231 sed -i " s/autostart=.*/autostart=true/" /etc/supervisor/db-only/supa-shutdown.conf
225232fi
226233
234+ if [ " ${PLATFORM_DEPLOYMENT:- } " ]; then
235+ enable_swap
236+ fi
237+
227238touch " $CONFIGURED_FLAG_PATH "
228239start_supervisor
You can’t perform that action at this time.
0 commit comments