fixed server bash script