Edit: /tmp/server-setup.sh (754B)
#!/usr/bin/env bash
# Minimal, NON-INVASIVE droplet preparation. This droplet hosts other
# production projects — this script deliberately does NOT touch the firewall,
# nginx, or any existing service. It only ensures Docker exists and creates
# the app directory. Run ON THE DROPLET as root:
# bash server-setup.sh
set -euo pipefail
if command -v docker >/dev/null 2>&1; then
echo "==> Docker already installed: $(docker --version)"
else
echo "==> Installing Docker (official convenience script)..."
curl -fsSL https://get.docker.com | sh
systemctl enable --now docker
fi
echo "==> Creating app directory..."
mkdir -p /opt/vitrin-clinic
echo "==> Current memory/swap (for reference):"
free -h
echo "==> Done. Nothing else was modified."