bin456789/reinstall ? reverse-engineered prompt
Reverse engineered prompt
I need a script that makes it super easy to reinstall the operating system on my VPS. I want a 'one-click' solution that lets me completely wipe my server and install a fresh OS. It should support a wide range of common Linux distributions like Debian, Ubuntu, Alpine, and various Red Hat clones, but also be able to install clean versions of Windows Server using official ISOs.
A key feature is that it should be able to switch between systems, so I can go from Linux to Windows or from Windows back to Linux without any hassle. It's really important that the script is smart and can automatically configure all the tricky network settings for me. It also needs to be optimized for low-spec servers with minimal RAM and be safe to use, so it doesn't accidentally wipe the wrong disk. Ideally, provide both a shell script for Linux and a batch file for Windows so I can run it from anywhere.
Are you gonna build this?
make sure you review the code using coderabbit