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 {
37
37
done
38
38
}
39
39
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
+
40
47
PG_CONF=/etc/postgresql/postgresql.conf
41
48
SUPERVISOR_CONF=/etc/supervisor/supervisord.conf
42
49
@@ -224,5 +231,9 @@ if [ "${AUTOSHUTDOWN_ENABLED:-}" ]; then
224
231
sed -i " s/autostart=.*/autostart=true/" /etc/supervisor/db-only/supa-shutdown.conf
225
232
fi
226
233
234
+ if [ " ${PLATFORM_DEPLOYMENT:- } " ]; then
235
+ enable_swap
236
+ fi
237
+
227
238
touch " $CONFIGURED_FLAG_PATH "
228
239
start_supervisor
You can’t perform that action at this time.
0 commit comments