We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1358ba6 commit 9f978ffCopy full SHA for 9f978ff
turnserver_install.sh.sample
@@ -155,7 +155,9 @@ sudo fallocate -l 16G /swapfile
155
sudo chmod 600 /swapfile
156
sudo mkswap /swapfile
157
sudo swapon /swapfile
158
-echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
+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
161
162
# Main script execution
163
echo "TURN Server Installation and Configuration"
0 commit comments