So, I clearly made some mistakes in the script. I totally missed the everything after the "Pull down and install containers" part as it changes to the "pi" user directory which there was not on the system. I will pay closer attention to the details and try this again in the morning.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!