If such bond be given, it shall be taken, approved and filed in the same manner that the official bond of such officer is required by law, for the time being, to be taken, approved and filed.