    cp /var/www/swamp-web-server/env.swampinabox /var/www/swamp-web-server/.env
fi
sed -i -e "s/SED_HOSTNAME/$HOSTNAME/"          /var/www/swamp-web-server/.env
sed -i -e "s/SED_ENVIRONMENT/SWAMP-in-a-Box/"  /var/www/swamp-web-server/.env
chown apache:apache                            /var/www/swamp-web-server/.env
chmod 400                                      /var/www/swamp-web-server/.env

echo "Setting Laravel application key"