An "easier way to do" what, exactly? Install Nextcloud? I think the two easiest options there would be either (1) use the plugin (you'll need to finish the Nextcloud installation through its own web GUI, giving an admin username and password, and the database credentials the system will give you when the plugin installation finishes); or (2) use my script (in which you'll need to prepare a config file of somewhere around 8-10 lines).