From 9f978ff4ef3da3dcb1245320eb7199fd75c821df Mon Sep 17 00:00:00 2001 From: steveseguin Date: Mon, 13 Jan 2025 01:40:23 -0500 Subject: [PATCH] . --- turnserver_install.sh.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/turnserver_install.sh.sample b/turnserver_install.sh.sample index ecc1d4f..cc3d634 100644 --- a/turnserver_install.sh.sample +++ b/turnserver_install.sh.sample @@ -155,7 +155,9 @@ sudo fallocate -l 16G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile -echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab +if ! grep -q '/swapfile none swap sw 0 0' /etc/fstab; then + echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab +fi # Main script execution echo "TURN Server Installation and Configuration"