[scripts/deploy] The maintenance file is created as late as possible