Returned deploy script to previous state