This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### === CONFIGURATION === | |
NODE_ID=7065410 | |
LOG_FILE=nexus.log | |
### === 1. Enable 4G Swap (if missing) === | |
if ! swapon --show | grep -q '/swapfile'; then | |
echo "[*] Creating 4G swap file..." | |
sudo fallocate -l 4G /swapfile |