Have a seperate var for edxapp configs.
Always write the supervisor files and link them as necessary.
Quote sudo_user.
Create the supervisor files as root so the proper group can be set.
Update name.