Skip to content

Commit 9f978ff

Browse files
committed
.
1 parent 1358ba6 commit 9f978ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

turnserver_install.sh.sample

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ sudo fallocate -l 16G /swapfile
155155
sudo chmod 600 /swapfile
156156
sudo mkswap /swapfile
157157
sudo swapon /swapfile
158-
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
158+
if ! grep -q '/swapfile none swap sw 0 0' /etc/fstab; then
159+
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
160+
fi
159161

160162
# Main script execution
161163
echo "TURN Server Installation and Configuration"

0 commit comments

Comments
 (0)