deploy script gives scripts back their permissions