Removed line exiting su - postgres session; must still be postgres user in order to successfully execute createdb command.