bash script now includes upload server